I'm new in python and I want to start running script2.py and script3.py when I manually run script1.py. For now I'm only capable to run one script from script1.py, but when I want the two scripts running from script1.py it fails.
Important is that script2.py and script3.py both immediately start running when I run script1.py
Anyone who can help me?
答案 0 :(得分:0)
This question is a duplicate: Run a python script from another python script, passing in args
Try using os.system at the beginning of your file:
os.system("script2.py")
os.system("script3.py")