Open another process in another Window

2.5k Views Asked by At

In my code I would like to launch a function/script in another python window (say, when you run one script, a back window pops up, I want that script to manage other scripts. They don't need to communicate).

Similar to multiprocessing but they have their own pop up windows and outputs. All their information is going to be written to a file there after.

I have searched a fair amount but it seems like no one want a script to run another script in another window, potentially running 4 or 5 python windows consecutively, each using a separate core.

1

There are 1 best solutions below

2
Timmy Diehl On BEST ANSWER

You should be able to use os.startfile(filename) Here is an example that runs another python file:

import os

os.startfile("File.py")

print("Started Running!")

This will open and run another python program, allowing this program to continue running.