[gobject-introspection] Update utils.py



commit 2ae776ad2ea1951d03ac661c13efa9518f73056a
Author: neok <neok m4700 gmail com>
Date:   Sun May 10 22:06:29 2020 +0000

    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')
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]