diff --git a/docs/regenerate_stubs.py b/docs/regenerate_stubs.py index 4a5177361..b2b923bcd 100644 --- a/docs/regenerate_stubs.py +++ b/docs/regenerate_stubs.py @@ -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')))