From e2a64df411f87989aa798b79fd59b92892f664f4 Mon Sep 17 00:00:00 2001 From: Sunishchal Date: Sat, 26 Sep 2020 01:24:36 -0700 Subject: [PATCH] Adding path to support upper level module imports --- .../health_and_education/clusters/electricity_cluster.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/solution/health_and_education/clusters/electricity_cluster.py b/solution/health_and_education/clusters/electricity_cluster.py index c284eef22..cbd174bfe 100644 --- a/solution/health_and_education/clusters/electricity_cluster.py +++ b/solution/health_and_education/clusters/electricity_cluster.py @@ -7,10 +7,12 @@ import numpy as np import pandas as pd -# import sys -# sys.path.append('c:\\Users\\sunishchal.dev\\Documents\\solutions') +import sys +repo_path = str(pathlib.Path(__file__).parents[3]) +sys.path.append(repo_path) -# import solarpvutil +from solution import solarpvutil +from model import dd DATADIR = pathlib.Path(__file__).parents[1].joinpath('data') THISDIR = pathlib.Path(__file__).parents[0]