Open another process in another Window

Question:

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.

Answers:

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.

Answered By: Timmy Diehl