You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The enhancements made in commit 7272bdb (Issue #346) introduced a bug where ImportDB.get_default(None) fails when the current working directory is the root directory. Reproducer:
>>> from pyflyby._importdb import ImportDB
>>> os.chdir('/')
>>> db = ImportDB.get_default(None)
ValueError: No know path are safe
The reason is that in this case, there are no parent directories to check. So the logic incorrectly thinks that there is no safe path.
The text was updated successfully, but these errors were encountered:
The enhancements made in commit 7272bdb (Issue #346) introduced a bug where
ImportDB.get_default(None)
fails when the current working directory is the root directory. Reproducer:The reason is that in this case, there are no parent directories to check. So the logic incorrectly thinks that there is no safe path.
The text was updated successfully, but these errors were encountered: