Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python import from other folder outside folder

# Bring your packages onto the path
import sys, os
sys.path.append(os.path.abspath(os.path.join('..', 'other_folder')))

# Now do your import
from other_folder.other_file import *
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #import #folder #folder
ADD COMMENT
Topic
Name
1+6 =