Fixed an issue creating translation files. 6_0_x

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 21 Jun 2015 21:07:47 +0200
branch
6_0_x
changeset 4285
8d70e7c55060
parent 4281
ea5708ccfefe
child 4294
bb90605f9382

Fixed an issue creating translation files.
(grafted from d61eba7a3b585194274def4ce21af1abc43c3572)

Project/ProjectTranslationsBrowser.py file | annotate | diff | comparison | revisions
--- a/Project/ProjectTranslationsBrowser.py	Sat Jun 13 18:18:39 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