[open-ils-commits] r16672 - branches/rel_1_6/build/i18n/scripts (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Jun 11 00:57:42 EDT 2010
Author: dbs
Date: 2010-06-11 00:57:39 -0400 (Fri, 11 Jun 2010)
New Revision: 16672
Modified:
branches/rel_1_6/build/i18n/scripts/dojo_resource.py
Log:
Just like r16670, avoid directory creation error if directory exists
Modified: branches/rel_1_6/build/i18n/scripts/dojo_resource.py
===================================================================
--- branches/rel_1_6/build/i18n/scripts/dojo_resource.py 2010-06-11 04:47:29 UTC (rev 16671)
+++ branches/rel_1_6/build/i18n/scripts/dojo_resource.py 2010-06-11 04:57:39 UTC (rev 16672)
@@ -126,7 +126,7 @@
pot.loadpo(options.create)
pot.create_bundle()
if options.outfile:
- if not os.path.exists(options.outfile):
+ if not os.path.exists(os.path.dirname(options.outfile)):
os.makedirs(os.path.dirname(options.outfile))
outfile = codecs.open(options.outfile, encoding='utf-8', mode='w')
simplejson.dump(pot.msgs, outfile, indent=4)
More information about the open-ils-commits
mailing list