浏览代码

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

Marian Beermann 9 年之前
父节点
当前提交
7953c42bab
共有 1 个文件被更改,包括 1 次插入0 次删除
  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]);