Fixed an issue creating translation files.

Sun, 21 Jun 2015 21:07:47 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 21 Jun 2015 21:07:47 +0200
changeset 4284
d61eba7a3b58
parent 4283
57a2cfd256da
child 4286
255f56eb7f05

Fixed an issue creating translation files.

Project/ProjectTranslationsBrowser.py file | annotate | diff | comparison | revisions
--- a/Project/ProjectTranslationsBrowser.py	Sun Jun 21 20:21:48 2015 +0200
+++ b/Project/ProjectTranslationsBrowser.py	Sun Jun 21 21:07:47 2015 +0200
@@ -810,6 +810,9 @@
             
             dir, name = os.path.split(pfile)
             outFile = os.path.join(dir, os.path.dirname(langs[0]), name)
+            outDir = os.path.dirname(outFile)
+            if not os.path.exists(outDir):
+                os.makedirs(outDir)
             try:
                 pf = open(outFile, "w", encoding="utf-8")
                 for key, list in sections:

eric ide

mercurial