File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed
Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -19,25 +19,21 @@ Module["mkdirs"] = function (dirname) {
1919
2020
2121Module [ "_untar_from_python" ] = function ( tarball_path , target_dir = "" ) {
22- Module . exec ( "print('lalalala')" ) ;
2322 Module . exec ( `
2423def _py_untar(tarball_path, target_dir):
25- print("1")
2624 import tarfile
2725 import json
2826 from pathlib import Path
2927 import tempfile
3028 import shutil
3129 import os
3230 import sys
33- print("2")
3431
3532
3633 def check_wasm_magic_number(file_path: Path) -> bool:
3734 WASM_BINARY_MAGIC = b"\\0asm"
3835 with file_path.open(mode="rb") as file:
3936 return file.read(4) == WASM_BINARY_MAGIC
40- print("3")
4137
4238 target_dir = target_dir
4339 if target_dir == "":
@@ -66,7 +62,6 @@ def _py_untar(tarball_path, target_dir):
6662 raise e
6763 return s
6864` )
69- console . log ( "calling into _py_untar" )
7065 let shared_libs = Module . eval ( `_py_untar("${ tarball_path } ", "${ target_dir } ")` )
7166
7267 return JSON . parse ( shared_libs )
You can’t perform that action at this time.
0 commit comments