Answers for "start script python"

C
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
0

python project script run

import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__),'../../'))
import src.mymodules.module1
Posted by: Guest on June-16-2021
-2

how to execute a python script

C:Python27python.exe C:UsersUsernameDesktopmy_python_script.py
Posted by: Guest on January-29-2021

Code answers related to "start script python"

Code answers related to "C"

Browse Popular Code Answers by Language