summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorneok <neok.m4700@gmail.com>2020-05-10 22:06:29 +0000
committerneok <neok.m4700@gmail.com>2020-05-10 22:06:29 +0000
commit2ae776ad2ea1951d03ac661c13efa9518f73056a (patch)
tree7beea92abff3bda218462ae717fed5e7ac879574
parentf8e080d03bb490e3539a2a7e0c4a5e7a20fcd863 (diff)
downloadgobject-introspection-2ae776ad2ea1951d03ac661c13efa9518f73056a.tar.gz
Update utils.py
-rw-r--r--giscanner/utils.py2
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')