how to execute python script in another script

49

how to execute python script in another script -

import subprocess
subprocess.call(" python script2.py 1", shell=True)

how to call a python script from another python script -

import fileB
fileB.my_func()

Comments

Submit
0 Comments