ArnaudFerre / CONTES

CONcept-TErm System
Apache License 2.0
9 stars 2 forks source link

issue with imports #9

Open mandiayba opened 5 years ago

mandiayba commented 5 years ago

git issue with the imports from utils

Traceback (most recent call last): File "module_train/main_train.py", line 38, in from utils import word2term, onto ModuleNotFoundError: No module named 'utils'

mandiayba commented 5 years ago

a solution by adding

import sys, os sys.path.append(os.path.dirname(os.path.abspath(file))+"/..")