mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 21:10:04 +00:00
Activate Python virtual environment on Windows during configuration
This commit is contained in:
parent
ac475999f5
commit
0e90f8a7a1
10 changed files with 95 additions and 8 deletions
|
|
@ -6,9 +6,19 @@
|
|||
@set generator=Visual Studio 17 2022
|
||||
@set qt_base=C:/Qt
|
||||
@set qt_arch=msvc2022_64
|
||||
@set venv_path=%script_dir%\..\.venv
|
||||
|
||||
:: Assign user-specified build directory
|
||||
@if not "%~1"=="" set build_dir=%~1
|
||||
@if not "%~1"=="" set build_dir=%~f1
|
||||
|
||||
:: Assign user-specified Python Virtual Environment
|
||||
@if not "%~2"=="" (
|
||||
if /i "%~2"=="none" (
|
||||
set venv_path=
|
||||
) else (
|
||||
set venv_path=%~f2
|
||||
)
|
||||
)
|
||||
|
||||
:: Perform common setup
|
||||
@call %script_dir%\lib\setup-common.bat
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue