changed hardcoded path to relative path in costs catalog factory

This commit is contained in:
Pilar Monsalvete 2023-04-25 10:27:27 -04:00
parent 4ab741ee12
commit 3d6699f71f

View File

@ -19,7 +19,7 @@ class CostCatalogFactory:
"""
def __init__(self, file_type, base_path=None):
if base_path is None:
base_path = 'C:/Users/JGAVALDA/PycharmProjects/hub/hub/data/costs'
base_path = Path(Path(__file__).parent.parent / 'data/costs')
self._catalog_type = '_' + file_type.lower()
self._path = base_path