From 2ae776ad2ea1951d03ac661c13efa9518f73056a Mon Sep 17 00:00:00 2001 From: neok Date: Sun, 10 May 2020 22:06:29 +0000 Subject: Update utils.py --- giscanner/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/giscanner/utils.py b/giscanner/utils.py index e8c246dd..e3396c6e 100644 --- a/giscanner/utils.py +++ b/giscanner/utils.py @@ -255,7 +255,7 @@ def get_system_data_dirs(): If any changes are made to that function they'll need to be copied here. ''' xdg_data_dirs = [x for x in os.environ.get('XDG_DATA_DIRS', '').split(os.pathsep)] - if not xdg_data_dirs and os.name != 'nt': + if not any(xdg_data_dirs) and os.name != 'nt': xdg_data_dirs.append('/usr/local/share') xdg_data_dirs.append('/usr/share') -- cgit v1.2.1