summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAarni Koskela <akx@iki.fi>2015-12-20 23:51:18 +0200
committerAarni Koskela <akx@iki.fi>2015-12-21 12:52:03 +0200
commit4c8515aae11b2faf4ab81c7412df3d89ee65c6ec (patch)
treef0e7637de9ac424f13a08b13754f0870080327df /scripts
parentec6098ff64ba387218eef3cc914b47efdf40d5c0 (diff)
downloadbabel-4c8515aae11b2faf4ab81c7412df3d89ee65c6ec.tar.gz
download_import_cldr: unzip into versioned dir
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/download_import_cldr.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/download_import_cldr.py b/scripts/download_import_cldr.py
index f8ba1fa..f9523aa 100755
--- a/scripts/download_import_cldr.py
+++ b/scripts/download_import_cldr.py
@@ -71,8 +71,9 @@ def is_good_file(filename):
def main():
scripts_path = os.path.dirname(os.path.abspath(__file__))
repo = os.path.dirname(scripts_path)
- cldr_path = os.path.join(repo, 'cldr')
- zip_path = os.path.join(cldr_path, FILENAME)
+ cldr_dl_path = os.path.join(repo, 'cldr')
+ cldr_path = os.path.join(repo, 'cldr', os.path.splitext(FILENAME)[0])
+ zip_path = os.path.join(cldr_dl_path, FILENAME)
changed = False
while not is_good_file(zip_path):