Open Ninjdai1 opened 1 year ago
Hi, it should be ok now. Can you try again?
Hi,
I tried with both from button import *
and import button
and it still doesn't work, unless I'm doing it wrong, which I don't believe:
I also have a similar issue, unable to import modular code in Pyxel Studio.
Looking at the current version of pyxel.js
served on https://www.pyxelstudio.net/wasm/pyxel.js
, it looks like the call to fetchFiles
is missing an await
(line 99):
// === PYXEL STUDIO =======================================================
await fetchFiles(pyodide, params)
// ========================================================================
Tested with Firefox devtools using a replacment file, it fixed the problem.
When using an import statement directed to a .py file located in the same directory, I get the error: module not found:
![image](https://user-images.githubusercontent.com/65647523/225420045-37363fa7-4a73-4a14-b4d5-1d0e2b6970c0.png)