diff --git a/CMakeLists.txt b/CMakeLists.txt index d81764b72..c03a649f6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,6 +36,10 @@ get_filename_component(third_party_loc "Telegram/ThirdParty" REALPATH) get_filename_component(submodules_loc "Telegram" REALPATH) get_filename_component(cmake_helpers_loc "cmake" REALPATH) +if (NOT DESKTOP_APP_USE_PACKAGED AND WIN32) + set(Python_EXECUTABLE ${CMAKE_CURRENT_SOURCE_DIR}/../ThirdParty/python/Scripts/python) +endif() + include(cmake/variables.cmake) include(cmake/nice_target_sources.cmake) include(cmake/target_compile_options_if_exists.cmake) diff --git a/Telegram/configure.bat b/Telegram/configure.bat index 75851b78e..85b9ddeba 100644 --- a/Telegram/configure.bat +++ b/Telegram/configure.bat @@ -3,7 +3,6 @@ setlocal enabledelayedexpansion set "FullScriptPath=%~dp0" -call %FullScriptPath%..\..\ThirdParty\python\Scripts\activate.bat python %FullScriptPath%configure.py %* if %errorlevel% neq 0 goto error