Answers for "python import from outer folder"

0

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 *
Posted by: Guest on June-25-2021
0

import folder from another folder python

sys.path.insert(1, '/path/to/application/app/folder')
Posted by: Guest on October-01-2020

Code answers related to "python import from outer folder"

Python Answers by Framework

Browse Popular Code Answers by Language