how to run a complete python file from another python code example Example: run py file in another py file os.system('python my_file.py')