Answers for "import object from parent folder python"

0

import file in parent directory python

import os, sys
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
# import ../db.py
import db
Posted by: Guest on June-18-2020

Code answers related to "import object from parent folder python"

Python Answers by Framework

Browse Popular Code Answers by Language