From d8d34e465014c8e9649003a2ebf41df03b57fb6d Mon Sep 17 00:00:00 2001 From: dbs Date: Fri, 11 Jun 2010 04:57:39 +0000 Subject: [PATCH] Just like r16670, avoid directory creation error if directory exists git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6@16672 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- build/i18n/scripts/dojo_resource.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/i18n/scripts/dojo_resource.py b/build/i18n/scripts/dojo_resource.py index c5aa1a7a73..90f7183eb2 100755 --- a/build/i18n/scripts/dojo_resource.py +++ b/build/i18n/scripts/dojo_resource.py @@ -126,7 +126,7 @@ def main(): 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) -- 2.11.0