diff options
Diffstat (limited to 'alot/helper.py')
-rw-r--r-- | alot/helper.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alot/helper.py b/alot/helper.py index 06362e06..5fab4819 100644 --- a/alot/helper.py +++ b/alot/helper.py @@ -627,7 +627,7 @@ def email_as_string(mail): return as_string -def get_env(env_name, fallback): - """ Gets environment variable and returns fallback if unset or empty """ +def get_xdg_env(env_name, fallback): + """ Used for XDG_* env variables to return fallback if unset *or* empty """ env = os.environ.get(env_name) return env if env else fallback |