I need to run several shell commands from Python. How do I use all the time the same shell?
Because if I use system in such manner:
from os import system system("set x=0") #setting a system variable system("echo %x%") #it does not exist here anymore
after first use the defined variable does not exist anymore.
How to workaround this?