I am trying to create a process that runs two separate bash scripts in separate terminal windows from a Python script that uses subprocess to call them. Currently I have something like this:
if <condition>:
subprocess.Popen(["bash", "<file1>"]).wait()
subprocess.Popen(["bash", "<file2>"]).wait()
I keep the wait calls at the end so that they don't overlap and I thought that since Popen() technically runs the calls separately they would run in different terminals. Is there any way to do this so that the two calls never interact or overlap in the same console?
Edit: The reason I need a new console for the second bash script is because the command called at the end of cannot be interrupted by new commands so whenever I have run this process manually I have always just opened a new terminal window to keep them separate. I realize there may be a better way of doing that but I am unaware of what it might be.