https://www.geeksforgeeks.org/python/run-one-python-script-from-another-in-python/
# file_2.py
# importing subprocess module
import subprocess
# running other file using run()
subprocess.run(["python", "file_1.py"])
Thank you,
Logan Bingham
https://www.geeksforgeeks.org/python/run-one-python-script-from-another-in-python/
# file_2.py
# importing subprocess module
import subprocess
# running other file using run()
subprocess.run(["python", "file_1.py"])
Thank you,
Logan Bingham
Leave a Reply