From 882e4c2ab85a9a3917b3cfd16990e8bcb1120d97 Mon Sep 17 00:00:00 2001 From: Al Date: Tue, 11 Aug 2015 20:04:42 -0400 Subject: [PATCH] [fix] ensure CLDR dir --- scripts/geodata/i18n/download_cldr.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/geodata/i18n/download_cldr.py b/scripts/geodata/i18n/download_cldr.py index cce31058..f28ec714 100644 --- a/scripts/geodata/i18n/download_cldr.py +++ b/scripts/geodata/i18n/download_cldr.py @@ -5,6 +5,7 @@ import sys import tempfile from unicode_paths import CLDR_DIR +from geodata.file_utils import ensure_dir this_dir = os.path.realpath(os.path.dirname(__file__)) sys.path.append(os.path.realpath(os.path.join(os.pardir, os.pardir))) @@ -15,7 +16,7 @@ CLDR_URL = 'http://www.unicode.org/Public/cldr/latest/core.zip' def download_cldr(temp_dir=None): if os.path.exists(CLDR_DIR): shutil.rmtree(CLDR_DIR) - os.mkdir(CLDR_DIR) + ensure_dir(CLDR_DIR) if not temp_dir: temp_dir = tempfile.gettempdir()