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:
Xavier Deguillard 2022-06-09 18:04:54 -07:00 committed by Facebook GitHub Bot
parent f6dc7b13f2
commit b2994cf71d

View File

@ -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);