Skip to content
  • Damien George's avatar
    py: Add module weak link support. · c14a8166
    Damien George authored
    With this patch a port can enable module weak link support and provide
    a dict of qstr->module mapping.  This mapping is looked up only if an
    import fails to find the requested module in the filesystem.
    
    This allows to have the builtin module named, eg, usocket, and provide
    a weak link of "socket" to the same module, but this weak link can be
    overridden if a file by the name "socket.py" is found in the import
    path.
    c14a8166