[open-ils-commits] r16670 - branches/rel_1_6/build/i18n/scripts (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Jun 11 00:40:39 EDT 2010
Author: dbs
Date: 2010-06-11 00:40:36 -0400 (Fri, 11 Jun 2010)
New Revision: 16670
Modified:
branches/rel_1_6/build/i18n/scripts/dojo_resource.py
Log:
Fix directory creation in Dojo resource script
Don't assume that if the file doesn't exist, that the directory also does not.
Modified: branches/rel_1_6/build/i18n/scripts/dojo_resource.py
===================================================================
--- branches/rel_1_6/build/i18n/scripts/dojo_resource.py 2010-06-11 03:40:15 UTC (rev 16669)
+++ branches/rel_1_6/build/i18n/scripts/dojo_resource.py 2010-06-11 04:40:36 UTC (rev 16670)
@@ -115,7 +115,7 @@
if options.pot:
pot.get_strings(options.pot)
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))
pot.savepot(options.outfile)
else:
More information about the open-ils-commits
mailing list