From eff29884655b0fbb6fa28e0bdd9bb8768391f9eb Mon Sep 17 00:00:00 2001 From: Jeroen Date: Sun, 17 Sep 2023 10:07:18 +0200 Subject: [PATCH] Made loading of Python script use relative path This ensures it loads when the HTML is loaded from a sub-folder. --- src/framework/processing/py_worker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/framework/processing/py_worker.js b/src/framework/processing/py_worker.js index a644fcd5..57c2f48a 100755 --- a/src/framework/processing/py_worker.js +++ b/src/framework/processing/py_worker.js @@ -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 `); } \ No newline at end of file