Skip to content
This repository was archived by the owner on Mar 26, 2025. It is now read-only.

Commit 155de1a

Browse files
committed
fix: default usage should work if paths is undefined
Fix for problem noted in #18
1 parent 8450815 commit 155de1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bash_completion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def _bash_completion_paths_default():
105105
def _get_bash_completions_source(paths=None):
106106
global _BASH_COMPLETIONS_PATHS_DEFAULT
107107
if paths is None:
108-
if _BASH_COMPLETIONS_PATHS_DEFAULT is None:
108+
if not _BASH_COMPLETIONS_PATHS_DEFAULT:
109109
_BASH_COMPLETIONS_PATHS_DEFAULT = _bash_completion_paths_default()
110110
paths = _BASH_COMPLETIONS_PATHS_DEFAULT
111111
for path in map(pathlib.Path, paths):

0 commit comments

Comments
 (0)