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 committed by jgavalda
parent cef35a7e02
commit c91edc8a83

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