mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 09:00:44 +00:00
On python 3.8+ call os.add_dll_directory in documentation build
* This nonsense is needed to load the renderdoc.dll from the python module, because python broke normal windows DLL loading behaviour.
This commit is contained in:
@@ -39,6 +39,10 @@ sys.path.insert(0, os.path.abspath(binpath + 'Release/pymodules'))
|
||||
os.environ["PATH"] += os.pathsep + os.path.abspath(binpath + 'Development/')
|
||||
os.environ["PATH"] += os.pathsep + os.path.abspath(binpath + 'Release/')
|
||||
|
||||
if sys.platform == 'win32' and sys.version_info[1] >= 8:
|
||||
os.add_dll_directory(binpath + 'Release/')
|
||||
os.add_dll_directory(binpath + 'Development/')
|
||||
|
||||
# path to module libraries for linux
|
||||
sys.path.insert(0, os.path.abspath('../build/lib'))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user