run py file in another py file
os.system('python my_file.py')
run py file in another py file
os.system('python my_file.py')
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
how to call a python script from another python script
import fileB
fileB.my_func()
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us