Answers for "reference folder outside of folder python"

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

Code answers related to "reference folder outside of folder python"

Python Answers by Framework

Browse Popular Code Answers by Language