From 29be20c06c0f29fc4e098be1fd90dee60048a288 Mon Sep 17 00:00:00 2001 From: Xavier Deguillard Date: Thu, 9 Jun 2022 18:04:54 -0700 Subject: [PATCH] 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 --- build/fbcode_builder/CMake/fb_py_win_main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build/fbcode_builder/CMake/fb_py_win_main.c b/build/fbcode_builder/CMake/fb_py_win_main.c index 200811bca..8b99e4c3d 100644 --- a/build/fbcode_builder/CMake/fb_py_win_main.c +++ b/build/fbcode_builder/CMake/fb_py_win_main.c @@ -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);