summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorqwint <qwint.42@gmail.com>2024-12-08 19:59:40 -0500
committerGitHub <noreply@github.com>2024-12-09 01:59:40 +0100
commitb5fc38f1f961f13d885b13582e3709704a0e57c3 (patch)
treee9ea62961405f200abff32220032de1e2652597d
parentac7540d019cefc72dd6206277cb02fe794a49ab6 (diff)
downloadlingo-apworld-b5fc38f1f961f13d885b13582e3709704a0e57c3.tar.gz
lingo-apworld-b5fc38f1f961f13d885b13582e3709704a0e57c3.tar.bz2
lingo-apworld-b5fc38f1f961f13d885b13582e3709704a0e57c3.zip
Various Worlds: use / explicitly for pkgutil (#4232)
-rw-r--r--static_logic.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/static_logic.py b/static_logic.py index 74eea44..9925e95 100644 --- a/static_logic.py +++ b/static_logic.py
@@ -107,7 +107,7 @@ def load_static_data_from_file():
107 return getattr(safe_builtins, name) 107 return getattr(safe_builtins, name)
108 raise pickle.UnpicklingError(f"global '{module}.{name}' is forbidden") 108 raise pickle.UnpicklingError(f"global '{module}.{name}' is forbidden")
109 109
110 file = pkgutil.get_data(__name__, os.path.join("data", "generated.dat")) 110 file = pkgutil.get_data(__name__, "data/generated.dat")
111 pickdata = RenameUnpickler(BytesIO(file)).load() 111 pickdata = RenameUnpickler(BytesIO(file)).load()
112 112
113 HASHES.update(pickdata["HASHES"]) 113 HASHES.update(pickdata["HASHES"])