Explorar o código

Fix stdlib DLL importing when borg.exe is run from arbitrary cwd()s

Marian Beermann %!s(int64=9) %!d(string=hai) anos
pai
achega
7953c42bab
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      deployment/windows/buildwin32.py

+ 1 - 0
deployment/windows/buildwin32.py

@@ -43,6 +43,7 @@ int wmain(int argc , wchar_t *argv[] )
     PathRemoveFileSpecW(path);
     std::wstring selfpath(path);
     std::wstring libpath = selfpath + L"/library.zip;" + selfpath + L"/bin";
+    SetDllDirectoryW(path);
 
     Py_SetPath(libpath.c_str());
     Py_SetProgramName(argv[0]);