diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2020-05-17 13:58:37 -0400 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2020-05-17 13:58:37 -0400 |
commit | f7c30105fb850a2b35a09924e8782e7a7734a79d (patch) | |
tree | 6b11de82964dee33b39fcec5fdef862c6ca70e29 /giscanner/utils.py | |
parent | 0881b78bbabb5aab59b2abedf41b05d46c3f6e4d (diff) | |
parent | 0ae28e564acc3cae564c7012dc749338cb9db32e (diff) | |
download | gobject-introspection-f7c30105fb850a2b35a09924e8782e7a7734a79d.tar.gz |
Merge remote-tracking branch 'upstream/master' into find_program_override
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') |