O
O
OlegUnity2019-03-25 18:31:30
Python
OlegUnity, 2019-03-25 18:31:30

How to run a python script from another python script?

How to make it so that from one python script another one is launched, with parameters (a=1 for example) and the first script continues and after the second one is closed
, I can’t find how to do it anywhere?
Python 3.7

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ronald McDonald, 2019-03-25
@OlegUnity

subprocess.Popen([sys.executable, 'script'], para,meters)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question