Answers for "how to import within 2 directories in python"

-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 "how to import within 2 directories in python"

Python Answers by Framework

Browse Popular Code Answers by Language