Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to import file from another directory in python

import sys
# sys.path is a list of absolute path strings
sys.path.append('/path/to/application/app/folder') # <-- relative path

import your_file
 
PREVIOUS NEXT
Tagged: #import #file #directory #python
ADD COMMENT
Topic
Name
3+5 =