Skip to content

Commit 5bd61bc

Browse files
committed
tests pass
1 parent c756883 commit 5bd61bc

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

include/pyjs/pre_js/load_pkg.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,21 @@ Module["mkdirs"] = function (dirname) {
1919

2020

2121
Module["_untar_from_python"] = function(tarball_path, target_dir = "") {
22-
Module.exec("print('lalalala')");
2322
Module.exec(`
2423
def _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)

0 commit comments

Comments
 (0)