Skip to content

Commit

Permalink
Keep only *OCIO* in %PATH%.
Browse files Browse the repository at this point in the history
  • Loading branch information
KelSolaar committed Sep 22, 2024
1 parent 85d58e3 commit 690d5e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bindings/python/package/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 690d5e1

Please sign in to comment.