Answers for "how to run a file from a python file"

1

How to run a File using python

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

how to run python file

C:\Users\Paracha> python myfile.py
Posted by: Guest on March-01-2022

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

Python Answers by Framework

Browse Popular Code Answers by Language