We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec0ac59 commit 1ba97f7Copy full SHA for 1ba97f7
include/pyjs/pre_js/load_pkg.js
@@ -44,18 +44,20 @@ def _py_untar(tarball_path, target_dir):
44
files = tar.getmembers()
45
shared_libs = []
46
for file in files:
47
- if file.name.endswith(".so"):
48
-
+ if file.name.endswith(".so") or ".so." in file.name:
49
if target_dir == "/":
50
shared_libs.append(f"/{file.name}")
51
else:
52
shared_libs.append(f"{target_dir}/{file.name}")
53
54
tar.extractall(target_dir)
+ actual_shared_libs = []
55
for file in shared_libs:
56
if not check_wasm_magic_number(Path(file)):
57
print(f" {file} is not a wasm file")
58
- s = json.dumps(shared_libs)
+ else:
59
+ actual_shared_libs.append(file)
60
+ s = json.dumps(actual_shared_libs)
61
except Exception as e:
62
print("ERROR",e)
63
raise e
0 commit comments