Answers for "call python script from python script"

1

python execute file

import fileB #Replace fileB with the apportite file name
fileB.my_func() #Can replace 'my_fun' with a function from the second .py file
execfile('file.py') #Executes the .py file
Posted by: Guest on February-03-2021
3

how to call a python script from another python script

import fileB
fileB.my_func()
Posted by: Guest on May-31-2020
-2

how to execute a python script

C:\Python27\python.exe C:\Users\Username\Desktop\my_python_script.py
Posted by: Guest on January-29-2021

Code answers related to "call python script from python script"

Python Answers by Framework

Browse Popular Code Answers by Language