run pyt file from py file code example
Example 1: run py file in another py file
os.system('python my_file.py')
Example 2: run python file using python code
exec(open('file.py').read())
os.system('python my_file.py')
exec(open('file.py').read())