Skip to content

find_modules crashes on non-readable directories #197

@ikanobori

Description

@ikanobori

I am working on a machine where the administrator has decided to remove read-permissions on some python module directories for some reason. This causes bpython to crash with OSError: Permission denied shortly after startup when find_modules in importcompletion.py tries to do a for name in os.listdir(path). A simple two-line check for readability should take care of this.


Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions