Repository navigation
Importing modules #1177
Replies: 1 comment
|
The For your existing stlite.mount({
entrypoint: "main.py",
files: {
"main.py": "import app\napp.hi()",
"app/__init__.py": { url: "./app/__init__.py" }
}
}, document.getElementById("root"));Serve the HTML and Python file over HTTP, and check that Alternatively, inline the file contents in See the files option and virtual filesystem explanation. If upgrading, note that |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Question
How do I import custom modules?
Folder Stucture
Code
./app/__init__.py./index.htmlError Faced
All reactions