Answers for "execute python file in python script"

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 "execute python file in python script"

Python Answers by Framework

Browse Popular Code Answers by Language