Skip to content

Commit

Permalink
[autorelease] Remove use of legacy importlib_resources functions.
Browse files Browse the repository at this point in the history
Fixes breakage due to python/importlib_resources#282.
  • Loading branch information
whitequark committed Jul 10, 2023
1 parent 72763f7 commit ddcfb7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yowasp_runtime/__init__.py
Expand Up @@ -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()
Expand Down

0 comments on commit ddcfb7b

Please sign in to comment.