Apr-25-2020, 02:55 PM
I am trying to write a code that executes a certain number of files in a directory. However, I do not want these files to be attached to python (aka python is the parent application) and I want them to have a completely different process group. Here is the code I am currently stuck on.
for x in os.listdir(): subprocess.Popen(x, creationflags=subprocess.CREATE_NEW_PROCESS_GROUP)