moved data folder

This commit is contained in:
Pilar 2020-06-29 16:52:05 -07:00
parent 8aac448721
commit 4dff9d3ba5
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ class PhysicsFactory:
"""
PhysicsFactor class
"""
def __init__(self, handler, city, base_path=Path(Path.cwd().parent / 'libs/data/physics')):
def __init__(self, handler, city, base_path=Path(Path(__file__).parent.parent / 'data/physics')):
self._handler = '_' + handler.lower().replace(' ', '_')
self._city = city
self._base_path = base_path

View File

@ -19,7 +19,7 @@ class UsBaseUsageParameters:
self._city = city
# todo: control not archetype found
# ToDo: this is using the german library as a temporary approach, need to use/define a library for US
path = str(Path.cwd() / 'data/usage/de_library.xml')
path = str(Path(__file__).parent.parent.parent / 'data/usage/de_library.xml')
print('usage:', path)
with open(path) as xml:
self._library = xmltodict.parse(xml.read(), force_list='zoneUsageVariant')