Skip to content

Look for modules in every directory of usys.path #10813

@smurfix

Description

@smurfix

Current behavior: if usys.path==["/lib",".flash"] and there's a /lib/foo/ directory, import foo.bar will fail even though help("modules") does list it and .flashstill is inusys.path`.

This is a problem because when I write and debug large programs which don't fit into RAM, I often want to deploy new versions of single modules without disrupting everything else. Right now I have to re-flash the whole board just to add one print() line somewhere. This also raises concerns about the number of write cycles.

Proposed fix: teach MicroPython to check all elements of usys.path for the relevant file-or-directory, instead of stopping at the first one it finds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementFeature requests, new feature implementations

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy