mirror of
https://github.com/borgbackup/borg.git
synced 2026-04-23 07:07:52 -04:00
Fix stdlib DLL importing when borg.exe is run from arbitrary cwd()s
This commit is contained in:
parent
7569bfe1f1
commit
7953c42bab
1 changed files with 1 additions and 0 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue