3
I’m looking to run a program parallel to mine, in case it’s called download.py
, it must run independent of my main execution main.py
, but should be called in the same. I thought of making systems call and am using the subprocess
, as in the example below:
...
path = '/home/prisvo/view_admin/backend/update_article/download.py'
process = subprocess.call(['python', path], stdout=PIPE, stderr=PIPE)
...
However, I want to continue with the execution of the code normally, the execution of the download.py
it takes a while, but I can’t wait for the execution. Is there any function of the Subprocess
or another library that can do this.