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

@@ -107,7 +107,7 @@ def load_static_data_from_file():
return getattr(safe_builtins, name)
raise pickle.UnpicklingError(f"global '{module}.{name}' is forbidden")
file = pkgutil.get_data(__name__, os.path.join("data", "generated.dat"))
file = pkgutil.get_data(__name__, "data/generated.dat")
pickdata = RenameUnpickler(BytesIO(file)).load()
HASHES.update(pickdata["HASHES"])