I want to run a program parallel to mine, in case it is called download.py
, it should run independently of my main main.py
execution, but it should be called in it. I thought about calling systems and I'm using 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 running the code normally, running download.py
takes a while, but I can not wait for execution. Is there any function of Subprocess
or other library that can do this.