Fix regenerate stubs script not having proper path separators

This commit is contained in:
baldurk
2026-01-23 12:06:36 +00:00
parent 0e338ac867
commit 6c0d1ed057
+6 -6
View File
@@ -25,16 +25,16 @@ else:
binpath = os.path.abspath(os.path.join(docsdir, '../Win32/'))
# Prioritise release over development builds
sys.path.insert(0, os.path.abspath(binpath + 'Development/pymodules'))
sys.path.insert(0, os.path.abspath(binpath + 'Release/pymodules'))
sys.path.insert(0, os.path.abspath(binpath + '/Development/pymodules'))
sys.path.insert(0, os.path.abspath(binpath + '/Release/pymodules'))
# Add the build paths to PATH so renderdoc.dll can be located
os.environ["PATH"] += os.pathsep + os.path.abspath(binpath + 'Development/')
os.environ["PATH"] += os.pathsep + os.path.abspath(binpath + 'Release/')
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/')
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(os.path.join(docsdir, '../build/lib')))