1
0
mirror of https://github.com/pyscript/pyscript.git synced 2022-05-01 19:47:48 +03:00

Loading module from file should not auto-import

This commit is contained in:
Philipp Rudiger
2022-04-26 16:02:58 +02:00
parent df514fe658
commit 2781792073

View File

@@ -407,10 +407,8 @@ class OutputManager:
sys.stdout = self._err_manager
console.log("----> reverted")
pyscript = PyScript()
output_manager = OutputManager()
`;
const loadInterpreter = async function (): Promise<any> {
@@ -462,8 +460,6 @@ const loadFromFile = async function (s: string, runtime: any): Promise<any> {
f.write(content)
`,
);
runtime.pyimport(filename.replace('.py', ''));
};
export { loadInterpreter, pyodideReadyPromise, loadPackage, loadFromFile };