DMU50_GUI_PY/EXEC_MAIN.ps1
Eduard Gerlitz 635d8e29e9 devl_v3
2025-03-11 14:02:57 +01:00

17 lines
441 B
PowerShell

#---------- USER DEFINE --------------
$venvName = "dmu50_wingui"
$scriptPath = "./MAIN.py"
#-------------------------------------
# Get the current username
$username = [System.Environment]::UserName
# Construct the path to the Python executable
$pythonExe = "C:\Users\user58\.conda\envs\$venvName\python.exe"
# Execute the Python script
& $pythonExe $scriptPath
# Pause at the end of the script
Read-Host -Prompt "Press Enter to exit"