From 690d5e1e37e167175d0880d6a6a276f901877eb5 Mon Sep 17 00:00:00 2001 From: Thomas Mansencal Date: Sun, 22 Sep 2024 13:11:17 +1200 Subject: [PATCH] Keep only *OCIO* in `%PATH%`. --- src/bindings/python/package/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bindings/python/package/__init__.py b/src/bindings/python/package/__init__.py index 350ce1516..1a972e174 100644 --- a/src/bindings/python/package/__init__.py +++ b/src/bindings/python/package/__init__.py @@ -42,7 +42,7 @@ if sys.version_info >= (3, 8) and platform.system() == "Windows": if os.getenv("OCIO_PYTHON_LOAD_DLLS_FROM_PATH", "1") == "1": for path in os.getenv("PATH", "").split(os.pathsep): - if "Python\\3.9" in path: + if "OpenColorIO" not in path: continue sys.stdout.write(path)