From ddcfb7b33339d57718c510e22a9bb32798015c0c Mon Sep 17 00:00:00 2001 From: Catherine Date: Mon, 10 Jul 2023 01:41:36 +0000 Subject: [PATCH] [autorelease] Remove use of legacy importlib_resources functions. Fixes breakage due to python/importlib_resources#282. --- yowasp_runtime/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yowasp_runtime/__init__.py b/yowasp_runtime/__init__.py index 1dcbdd8..494a68a 100644 --- a/yowasp_runtime/__init__.py +++ b/yowasp_runtime/__init__.py @@ -15,7 +15,7 @@ def run_wasm(__package__, wasm_filename, *, resources=[], argv): # load the WebAssembly application - module_binary = importlib_resources.read_binary(__package__, wasm_filename) + module_binary = importlib_resources.files(__package__).joinpath(wasm_filename).read_bytes() module_digest = hashlib.sha1(module_binary).hexdigest() wasi_cfg = wasmtime.WasiConfig()