Reputation: 378
I want to make a script that opens a different console with a script attatched to it that runs when the other console opens so you don't have everything happening in the same console window, I've tried doing this but it didn't seem to work
function = """
the script I want to execute in the other window
"""
os.system('start /wait cmd /c python %s' % (function))
Upvotes: 0
Views: 162
Reputation: 11
I think your question is similar to this one. See if it helps.
How can I open two consoles from a single script
Upvotes: 1