mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-12 23:37:14 +03:00
[Fix] Unify Resources Folder
This commit is contained in:
parent
620188a9f0
commit
bcb8a4a999
@ -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)
|
||||
|
||||
|
@ -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'):
|
||||
|
Loading…
x
Reference in New Issue
Block a user