Answers for "how to run python script in python file"

6

run py file in another py file

os.system('python my_file.py')
Posted by: Guest on April-13-2020
12

run python file using python code

exec(open('file.py').read())
Posted by: Guest on May-24-2020

Code answers related to "how to run python script in python file"

Python Answers by Framework

Browse Popular Code Answers by Language