Commit 7a64e753 authored by Michael Büsch's avatar Michael Büsch

bat: Autodetection of python paths

Signed-off-by: Michael Büsch's avatarMichael Buesch <m@bues.ch>
parent c2bbcbc2
@ECHO OFF
SET PATH=%PATH%;C:\WINDOWS;C:\WINDOWS\SYSTEM32;C:\PYTHON;C:\PYTHON34;C:\PYTHON33;C:\PYTHON32
SET PYPROG=awlsim-gui
SETLOCAL ENABLEDELAYEDEXPANSION
SET PATH=%PATH%;C:\WINDOWS;C:\WINDOWS\SYSTEM32
FOR /D %%f IN ( C:\PYTHON* ) DO SET PATH=!PATH!;%%f
py -h >NUL 2>&1
if %ERRORLEVEL% EQU 0 GOTO exec_py
......
@echo off
SET PATH=%PATH%;C:\WINDOWS;C:\WINDOWS\SYSTEM32;C:\PYTHON34;%ProgramFiles%\7-Zip
setlocal ENABLEDELAYEDEXPANSION
set PATH=%PATH%;C:\WINDOWS;C:\WINDOWS\SYSTEM32
for /D %%f in ( C:\PYTHON* ) do set PATH=!PATH!;%%f
set PATH=%PATH%;%ProgramFiles%\7-Zip
py -c "from awlsim.common.version import VERSION_STRING; print(VERSION_STRING)" > version.txt
set /p version= < version.txt
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment