Answers for "how to run a file using python"

6

run py file in another py file

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

How to run a File using python

import subprocess  #imports the module thats needed
subprocess.call([r'C:UsersRonDesktopTestcurrent_date.bat'])  #runs the file in the given directory
Posted by: Guest on November-05-2021

Code answers related to "how to run a file using python"

Python Answers by Framework

Browse Popular Code Answers by Language