8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c65cad commit 1e8aa87Copy full SHA for 1e8aa87
pyscriptjs/src/interpreter.ts
@@ -22,7 +22,7 @@ const loadInterpreter = async function (indexUrl:string): Promise<any> {
22
23
// let's get the full path of where PyScript is running from so we can load the pyscript.py
24
// file from the same location
25
- const loadedScript: HTMLScriptElement = document.querySelector(`script[src$='pyscript.js']`);
+ const loadedScript: HTMLScriptElement = document.querySelector(`script[src$='pyscript.js'], script[src$='pyscript.min.js']`);
26
const scriptPath = loadedScript.src.substring(0, loadedScript.src.lastIndexOf('/'));
27
await pyodide.runPythonAsync(await (await fetch(`${scriptPath}/pyscript.py`)).text());
28
0 commit comments