How to provide a custom implementation of open()? #10737
Unanswered
zpif
asked this question in
Using MicroPython
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am putting a Zip file into my microcontroller's internal flash. I have then implemented mp_import_stat() and mp_lexer_new_from_file() to read from this Zip file (using miniz). This works fine, and I can now use "import" to read code from the Zip file.
Now I would also like to read plain files from this Zip file using open() and friends. Is there a similar hook function that I can implement?
Beta Was this translation helpful? Give feedback.
All reactions