[Bug] Cannot import last-used main module on REPL #745
Labels
bug
Something isn't working
software: pybricks-micropython
Issues with Pybricks MicroPython firmware (or EV3 runtime)
This is somewhat of a minor issue, but while we are looking at the REPL:
Since we started using the
__main__
name to search for the entry point (as opposed to using the first or last script), the last-used main script cannot be imported by its original name. It also can't be imported as__main__
because that is now the REPL itself.The use case isn't entirely far-fetched though. You could think of using the REPL to prepare test conditions, and then try to import your script to see how it behaves.
The text was updated successfully, but these errors were encountered: