Skip to content

How can I make my own python file modules read by pyscript in a nested way? #1951

Closed Answered by WebReflection
LucasCelestinoSE asked this question in Q&A
Discussion options

You must be logged in to vote

I took the freedom to edit your issue as it wasn't clear and it was using multi-line code within a single ` tick.

To bring in modules you can use [files] which purpose is to load your files into the virtual FS automatically provided by this project.

That allows you to import hello as long as you have hello.py or an hello folder with its __init__.py in it, so that this issue is actually non-existent and, hopefully, well documented.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by LucasCelestinoSE
Comment options

You must be logged in to vote
1 reply
@WebReflection
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants