[Bf-blender-cvs] [57e0b2e5fd4] tmp_libupdate_34: fix: usd not importing on windows

Ray Molenkamp noreply at git.blender.org
Thu Aug 25 02:17:29 CEST 2022


Commit: 57e0b2e5fd4c332bde0e428150057466fac1e301
Author: Ray Molenkamp
Date:   Wed Aug 24 18:17:17 2022 -0600
Branches: tmp_libupdate_34
https://developer.blender.org/rB57e0b2e5fd4c332bde0e428150057466fac1e301

fix: usd not importing on windows

===================================================================

M	release/scripts/usercustomize.py

===================================================================

diff --git a/release/scripts/usercustomize.py b/release/scripts/usercustomize.py
index 99d99ba6465..09b1be45ed9 100644
--- a/release/scripts/usercustomize.py
+++ b/release/scripts/usercustomize.py
@@ -11,3 +11,6 @@ if sys.platform == 'win32':
     if exe_file.startswith('python'):
         blender_dir = os.path.abspath(os.path.join(exe_dir, '..', '..', '..','blender.shared'))
         os.add_dll_directory(blender_dir)
+        import_paths = os.getenv('PXR_USD_WINDOWS_DLL_PATH')
+        if import_paths is None:
+            os.environ["PXR_USD_WINDOWS_DLL_PATH"] = blender_dir



More information about the Bf-blender-cvs mailing list