Jak wykonać skrypt Pythona w innym skrypcie
import subprocess
subprocess.call(" python script2.py 1", shell=True)
kirito.
import subprocess
subprocess.call(" python script2.py 1", shell=True)
os.system('python my_file.py')
import myfile
myfile.myfunction
#calls a specific function from within the file
subprocess.call(" python script2.py 1", shell=True)
import fileB
fileB.my_func()