Skip to content

Commit

Permalink
Remove *Python 3.9* from %PATH%.
Browse files Browse the repository at this point in the history
  • Loading branch information
KelSolaar committed Sep 21, 2024
1 parent bcf7330 commit 85d58e3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/bindings/python/package/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
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:
continue

sys.stdout.write(path)
sys.stdout.write("\n")
if os.path.exists(path) and path != ".":
Expand Down

0 comments on commit 85d58e3

Please sign in to comment.