summaryrefslogtreecommitdiff
path: root/poezio/common.py
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-08-15 14:26:15 +0200
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-08-15 14:26:15 +0200
commit1b48f9e63d58a9278aef37c533686b5904edd616 (patch)
tree0a331844ad7403d7752e0f260de4c05d85ca05bb /poezio/common.py
parent5ea82ac0af1cb855c9333796004c6a97da6b5ad4 (diff)
downloadpoezio-1b48f9e63d58a9278aef37c533686b5904edd616.tar.gz
poezio-1b48f9e63d58a9278aef37c533686b5904edd616.tar.bz2
poezio-1b48f9e63d58a9278aef37c533686b5904edd616.tar.xz
poezio-1b48f9e63d58a9278aef37c533686b5904edd616.zip
rostertab, common: Use the default arg of os.getenv().
Diffstat (limited to 'poezio/common.py')
-rw-r--r--poezio/common.py2
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):