Skip to content

Commit 2781792

Browse files
committed
Loading module from file should not auto-import
1 parent df514fe commit 2781792

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

pyscriptjs/src/interpreter.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -407,10 +407,8 @@ class OutputManager:
407407
sys.stdout = self._err_manager
408408
console.log("----> reverted")
409409
410-
411410
pyscript = PyScript()
412411
output_manager = OutputManager()
413-
414412
`;
415413

416414
const loadInterpreter = async function (): Promise<any> {
@@ -462,8 +460,6 @@ const loadFromFile = async function (s: string, runtime: any): Promise<any> {
462460
f.write(content)
463461
`,
464462
);
465-
466-
runtime.pyimport(filename.replace('.py', ''));
467463
};
468464

469465
export { loadInterpreter, pyodideReadyPromise, loadPackage, loadFromFile };

0 commit comments

Comments
 (0)