Various Worlds: use / explicitly for pkgutil (#4232)

This commit is contained in:
qwint
2024-12-08 19:59:40 -05:00
committed by GitHub
parent 5b4d7c7526
commit 1f712d9a87
8 changed files with 11 additions and 11 deletions

View File

@@ -3,7 +3,7 @@ import json
import pkgutil
def load_data_file(*args) -> dict:
fname = os.path.join("data", *args)
fname = "/".join(["data", *args])
return json.loads(pkgutil.get_data(__name__, fname).decode())
# For historical reasons, these values are different.