Skip to content

Commit

Permalink
Fix for ImportDB.get_default(None)
Browse files Browse the repository at this point in the history
Condition was swapped and avoided adding current folder as a search path
for db
  • Loading branch information
Carreau committed Oct 21, 2024
1 parent 6e7f19d commit f9186fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/python/pyflyby/_importdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def get_default(cls, target_filename: Union[Filename, str], /):
target_path = Path(target_filename).resolve()

parents: List[Path]
if not target_path.is_dir():
if target_path.is_dir():
parents = [target_path]
else:
parents = []
Expand Down

0 comments on commit f9186fc

Please sign in to comment.