Answers for "import a file from a folder using puthon"

-1

how to import somthing from another directory in pyhon

# some_file.py
import sys
# insert at 1, 0 is the script path (or '' in REPL)
sys.path.insert(1, '/path/to/application/app/folder')

import file
Posted by: Guest on December-11-2020

Code answers related to "import a file from a folder using puthon"

Python Answers by Framework

Browse Popular Code Answers by Language