python import parent dir
import os project_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) os.sys.path.insert(0,project_dir)