[gnome-shell/wip/fmuellner/pardon-my-french: 19/22] Generate all json files for the android directory in a go



commit 53e56f2395e806473b885a304c71f0874fcb6d08
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sun Aug 13 21:29:02 2017 +0000

    Generate all json files for the android directory in a go

 cldr2json.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/cldr2json.py b/cldr2json.py
index 0d4fcc6d5..b380ff21d 100755
--- a/cldr2json.py
+++ b/cldr2json.py
@@ -204,6 +204,5 @@ if __name__ == "__main__":
     if os.path.isfile(source):
         convert_file(source, destination)
     elif os.path.isdir(source):
-        os.chdir(source)
-        for path in glob.glob("*-t-k0-android.xml"):
+        for path in glob.glob(source + "/*-t-k0-android.xml"):
             convert_file(path, destination)


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