Hi,
I am trying to replace a batch file with a python script. But my issue is if I call subprocess.call to issue a shell command when its done the state is lost. Meaning the call is esentially stateless. So if my first call changed the cwd or set a variable; in my next call those state changes would not be there.
I assume this must be a common thing and I am just missing something. Please any help would be much appreciated. I have search around google for a while with no luck.
Thanks
I am trying to replace a batch file with a python script. But my issue is if I call subprocess.call to issue a shell command when its done the state is lost. Meaning the call is esentially stateless. So if my first call changed the cwd or set a variable; in my next call those state changes would not be there.
I assume this must be a common thing and I am just missing something. Please any help would be much appreciated. I have search around google for a while with no luck.
Thanks