Find venv without configure.bat

This commit is contained in:
Ilya Fedin 2022-12-27 14:37:58 +04:00 committed by John Preston
parent 63c2db30f2
commit 690e1013cf
2 changed files with 4 additions and 1 deletions

View File

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

View File

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