Browse Source

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

Marian Beermann 9 years ago
parent
commit
7953c42bab
1 changed files with 1 additions and 0 deletions
  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);
     PathRemoveFileSpecW(path);
     std::wstring selfpath(path);
     std::wstring selfpath(path);
     std::wstring libpath = selfpath + L"/library.zip;" + selfpath + L"/bin";
     std::wstring libpath = selfpath + L"/library.zip;" + selfpath + L"/bin";
+    SetDllDirectoryW(path);
 
 
     Py_SetPath(libpath.c_str());
     Py_SetPath(libpath.c_str());
     Py_SetProgramName(argv[0]);
     Py_SetProgramName(argv[0]);