setting batch variables using python -
python seems process attempt :
subprocess.call(['set' , 'logfile=cat'], shell=true)
it returns no errors. when try using logfile variable or %logfile%
, doesn't seem have set logfile
anything. how 1 make batch variables within python script?
what attempting is: have batch script sequentially runs several python scripts. wanted set variable within 1 of python scripts persist throughout batch script.
your variable set, call
returns, instance of shell ends , variable goes away.
what trying accomplish exactly? sounds xy problem.
Comments
Post a Comment