Skip to content

Commit

Permalink
Purge %PATH%...
Browse files Browse the repository at this point in the history
  • Loading branch information
KelSolaar committed Sep 19, 2024
1 parent 92addfa commit 2834fea
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/bindings/python/package/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@
# environment variable to 0.
#

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 os.path.exists(path) and path != ".":
os.add_dll_directory(path)

del os, sys, platform
# 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 os.path.exists(path) and path != ".":
# os.add_dll_directory(path)
#
# del os, sys, platform

#
# Import compiled module.
Expand Down

0 comments on commit 2834fea

Please sign in to comment.