mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-23 06:05:45 +00:00
Fix os.add_dll_directory in docs to use absolute paths
This commit is contained in:
+4
-2
@@ -40,8 +40,10 @@ 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/')
|
||||
for sub in ['Release', 'Development']:
|
||||
path = os.path.abspath(binpath + sub)
|
||||
if os.path.exists(path):
|
||||
os.add_dll_directory(path)
|
||||
|
||||
# path to module libraries for linux
|
||||
sys.path.insert(0, os.path.abspath('../build/lib'))
|
||||
|
||||
Reference in New Issue
Block a user