Skip to content

Commit a70b13e

Browse files
modified import to test guthub workflow
1 parent 687e55f commit a70b13e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

cmethods/tests/testing.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@
1010
from cmethods.CMethods import CMethods
1111
except ModuleNotFoundError:
1212
print('Using local module')
13-
sys.path.append('/Users/benjamin/repositories/awi-workspace/Bias-Adjustment-Python')
14-
from cmethods.CMethods import CMethods
13+
try:
14+
sys.path.append('/Users/benjamin/repositories/awi-workspace/Bias-Adjustment-Python')
15+
from cmethods.CMethods import CMethods
16+
except ModuleNotFoundError:
17+
sys.path.append('../')
18+
from CMethods import CMethods
1519

1620
logging.basicConfig(
1721
format='%(asctime)s %(module)s,line: %(lineno)d %(levelname)8s | %(message)s',

0 commit comments

Comments
 (0)