summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--poezio/common.py2
-rw-r--r--poezio/tabs/rostertab.py2
2 files changed, 2 insertions, 2 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):
diff --git a/poezio/tabs/rostertab.py b/poezio/tabs/rostertab.py
index 43c612d0..11473e83 100644
--- a/poezio/tabs/rostertab.py
+++ b/poezio/tabs/rostertab.py
@@ -611,7 +611,7 @@ class RosterInfoTab(Tab):
n = the_input.get_argument_position()
if n == complete_number:
if args[n - 1] == '' or len(args) < n + 1:
- home = os.getenv('HOME') or '/'
+ home = os.getenv('HOME', default='/')
return Completion(
the_input.new_completion, [home, '/tmp'], n, quotify=True)
path_ = Path(args[n])