diff options
author | neok <neok.m4700@gmail.com> | 2020-05-10 22:06:29 +0000 |
---|---|---|
committer | neok <neok.m4700@gmail.com> | 2020-05-10 22:06:29 +0000 |
commit | 2ae776ad2ea1951d03ac661c13efa9518f73056a (patch) | |
tree | 7beea92abff3bda218462ae717fed5e7ac879574 /giscanner/utils.py | |
parent | f8e080d03bb490e3539a2a7e0c4a5e7a20fcd863 (diff) | |
download | gobject-introspection-2ae776ad2ea1951d03ac661c13efa9518f73056a.tar.gz |
Update utils.py
Diffstat (limited to 'giscanner/utils.py')
-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') |