From 278179207369c68954991f135d1f5f35fdd9cea1 Mon Sep 17 00:00:00 2001 From: Philipp Rudiger Date: Tue, 26 Apr 2022 16:02:58 +0200 Subject: [PATCH] Loading module from file should not auto-import --- pyscriptjs/src/interpreter.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pyscriptjs/src/interpreter.ts b/pyscriptjs/src/interpreter.ts index 8459b077..bf08054b 100644 --- a/pyscriptjs/src/interpreter.ts +++ b/pyscriptjs/src/interpreter.ts @@ -407,10 +407,8 @@ class OutputManager: sys.stdout = self._err_manager console.log("----> reverted") - pyscript = PyScript() output_manager = OutputManager() - `; const loadInterpreter = async function (): Promise { @@ -462,8 +460,6 @@ const loadFromFile = async function (s: string, runtime: any): Promise { f.write(content) `, ); - - runtime.pyimport(filename.replace('.py', '')); }; export { loadInterpreter, pyodideReadyPromise, loadPackage, loadFromFile };