From c62b4c2570dd9e5781c489316dbcb341c21001f4 Mon Sep 17 00:00:00 2001 From: dbs Date: Fri, 11 Jun 2010 04:40:36 +0000 Subject: [PATCH] Fix directory creation in Dojo resource script Don't assume that if the file doesn't exist, that the directory also does not. git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6@16670 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 d33f655728..c5aa1a7a73 100755 --- a/build/i18n/scripts/dojo_resource.py +++ b/build/i18n/scripts/dojo_resource.py @@ -115,7 +115,7 @@ def main(): 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: -- 2.11.0