Skip to content

Commit

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


sys.stdout.write("*" * 79)
sys.stdout.write("\n" )
sys.stdout.write("*" * 79)
sys.stdout.write("\n" )
sys.stdout.write("*" * 79)
sys.stdout.write("\n" )
sys.stdout.write("*" * 79)
sys.stdout.write("\n" )

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):
sys.stdout.write(path)
sys.stdout.write("\n")
if os.path.exists(path) and path != ".":
print(path)
os.add_dll_directory(path)

del os, sys, platform
Expand Down

0 comments on commit bcf7330

Please sign in to comment.