I am having the following issue setting up an enviroment variable,looked at other examples set environment variable in python script ,one worked
1.I have a value in variable "version" in a python script. 2.Now,I need to set this as enviroment variable for BUILD_VER in windows(currently its in windoWs,prefer to make it generic across OS),normally a simple SET BUILD_VER=%version% in a batch file would do(this enviroment variable is used by another batchfile which makes a software build which I guess is unrelated here)
Now,coming and focusing to the problem.
Is there a way I can set BUILD_VER =VERSION in the same python script and pass it onto a batch file?any other ideas?i tried the following in a batch file but am not sure if the python script is running ?running the following doesnt output anything
@echo off
FOR /F %v IN ('build_ver.py 123637') DO SET BUILD_VER=%v