[Fix] Unify Resources Folder

This commit is contained in:
David Sangrey committed 2024-01-03 19:02:15 -05:00
1 parent 620188a9f0
commit bcb8a4a999
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -24,7 +24,7 @@ __Module = dict[str, Union[str, list[str]]] # Have to keep old-style here for c
ship_map = ship_name_map.copy()
# Ship masses
ships_file = config.respath_path / "resources" / "ships.json"
ships_file = config.respath_path / "ships.json"
with open(ships_file, encoding="utf-8") as ships_file_handle:
ships = json.load(ships_file_handle)
+1 -1
View File
@@ -57,7 +57,7 @@ def lookup(module, ship_map, entitled=False) -> dict | None: # noqa: C901, CCR0
"""
# Lazily populate
if not moduledata:
modules_path = config.respath_path / "resources" / "modules.json"
modules_path = config.respath_path / "modules.json"
moduledata.update(json.loads(modules_path.read_text()))
if not module.get('name'):