diff options
Diffstat (limited to 'poezio/common.py')
-rw-r--r-- | poezio/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/poezio/common.py b/poezio/common.py index 83587b8c..3a865054 100644 --- a/poezio/common.py +++ b/poezio/common.py @@ -47,7 +47,7 @@ def _is_in_path(command: str, return_abs_path=False) -> Union[bool, str]: and *return_abs_path* is True, otherwise False. """ - path = os.getenv('PATH') or '' + path = os.getenv('PATH', default='') for directory in path.split(os.pathsep): try: if command in os.listdir(directory): |