Commit 35c8b64d authored by Romain Casati's avatar Romain Casati
Browse files

Better version number support in Basthon.

parent c6689116
......@@ -106,8 +106,7 @@
// connecting eval to basthon.eval.request event.
that.addEventListener("eval.request", that.evalFromEvent);
// get the version of Python from Python
const sys = pyodide.pyimport("sys");
that.pythonVersion = sys.version;
that.pythonVersion = pyodide.runPython("import platform ; platform.python_version()");
return pyodide.loadPackage(that.basthonRoot + "/basthon-py/basthon.js").then(
() => pyodide.runPythonAsync("import basthon"));
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment