mirror of
https://github.com/facebook/sapling.git
synced 2024-10-05 06:18:07 +03:00
win_main: add search path for fb-python
Summary: Python may also be found at these paths, let's thus make sure that getdeps built Python binaries are searching for python.dll in these paths. Reviewed By: ikriv Differential Revision: D37043501 fbshipit-source-id: 3de396f64b59256c1ce31c3b3da6b49e3f1f8838
This commit is contained in:
parent
f6dc7b13f2
commit
b2994cf71d
@ -53,8 +53,12 @@ int locate_py_main(int argc, wchar_t** argv) {
|
||||
|
||||
// last added directory has highest priority
|
||||
add_search_path(L"C:\\Python36\\");
|
||||
add_search_path(L"C:\\tools\\fb-python\\fb-python36\\");
|
||||
add_search_path(L"C:\\Python37\\");
|
||||
add_search_path(L"C:\\tools\\fb-python\\fb-python37\\");
|
||||
add_search_path(L"C:\\Python38\\");
|
||||
add_search_path(L"C:\\tools\\fb-python\\fb-python38\\");
|
||||
add_search_path(L"C:\\tools\\fb-python\\fb-python39\\");
|
||||
|
||||
python_dll =
|
||||
LoadLibraryExW(L"python3.dll", NULL, LOAD_LIBRARY_SEARCH_DEFAULT_DIRS);
|
||||
|
Loading…
Reference in New Issue
Block a user