diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2011-03-01 11:05:47 (GMT) |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2011-03-01 15:11:33 (GMT) |
commit | 803c374749fb0ab37512be0ad625d9823d93067b (patch) | |
tree | 3caa5589817d9e7bc14378d2da00b23a807a21e9 /util/local_database/qlocalexml2cpp.py | |
parent | 9cb1ebb9096aedc04f01154cecd7b21a062339a6 (diff) | |
download | Qt-803c374749fb0ab37512be0ad625d9823d93067b.zip Qt-803c374749fb0ab37512be0ad625d9823d93067b.tar.gz Qt-803c374749fb0ab37512be0ad625d9823d93067b.tar.bz2 |
Fixed CLDR to QLocale generator.
Create temp files on the same device as the QTDIR so that rename() will work
properly.
Reviewed-by: Liang Qi
Diffstat (limited to 'util/local_database/qlocalexml2cpp.py')
-rwxr-xr-x | util/local_database/qlocalexml2cpp.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util/local_database/qlocalexml2cpp.py b/util/local_database/qlocalexml2cpp.py index ee66ba9..8b68984 100755 --- a/util/local_database/qlocalexml2cpp.py +++ b/util/local_database/qlocalexml2cpp.py @@ -384,7 +384,7 @@ def main(): if not os.path.isfile(qtsrcdir + "/src/corelib/tools/qlocale.qdoc"): usage() - (data_temp_file, data_temp_file_path) = tempfile.mkstemp("qlocale_data_p") + (data_temp_file, data_temp_file_path) = tempfile.mkstemp("qlocale_data_p", dir=qtsrcdir) data_temp_file = os.fdopen(data_temp_file, "w") qlocaledata_file = open(qtsrcdir + "/src/corelib/tools/qlocale_data_p.h", "r") s = qlocaledata_file.readline() @@ -667,7 +667,7 @@ def main(): # qlocale.h - (qlocaleh_temp_file, qlocaleh_temp_file_path) = tempfile.mkstemp("qlocale.h") + (qlocaleh_temp_file, qlocaleh_temp_file_path) = tempfile.mkstemp("qlocale.h", dir=qtsrcdir) qlocaleh_temp_file = os.fdopen(qlocaleh_temp_file, "w") qlocaleh_file = open(qtsrcdir + "/src/corelib/tools/qlocale.h", "r") s = qlocaleh_file.readline() @@ -717,7 +717,7 @@ def main(): # qlocale.qdoc - (qlocaleqdoc_temp_file, qlocaleqdoc_temp_file_path) = tempfile.mkstemp("qlocale.qdoc") + (qlocaleqdoc_temp_file, qlocaleqdoc_temp_file_path) = tempfile.mkstemp("qlocale.qdoc", dir=qtsrcdir) qlocaleqdoc_temp_file = os.fdopen(qlocaleqdoc_temp_file, "w") qlocaleqdoc_file = open(qtsrcdir + "/src/corelib/tools/qlocale.qdoc", "r") s = qlocaleqdoc_file.readline() |