diff options
-rw-r--r-- | giscanner/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
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') |