Answers for "how to run a python script directly when it started"

12

run python file using python code

exec(open('file.py').read())
Posted by: Guest on May-24-2020
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

Code answers related to "how to run a python script directly when it started"

Python Answers by Framework

Browse Popular Code Answers by Language