Skip to content

Commit

Permalink
Made loading of Python script use relative path
Browse files Browse the repository at this point in the history
This ensures it loads when the HTML is loaded from a sub-folder.
  • Loading branch information
vloothuis committed Sep 17, 2023
1 parent ca9767f commit eff2988
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/framework/processing/py_worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ function installPortPackage() {
console.log('[ProcessingWorker] load port package')
return self.pyodide.runPythonAsync(`
import micropip
await micropip.install("/port-0.0.0-py3-none-any.whl", deps=False)
await micropip.install("../../port-0.0.0-py3-none-any.whl", deps=False)
import port
`);
}

0 comments on commit eff2988

Please sign in to comment.