changeset 4759:f59207d04c15

create attachment directory for LanguageSetup
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 18 Jul 2009 23:01:24 +0200
parents 803798d3a7a2
children 14be105b1c32
files MoinMoin/script/maint/mkpagepacks.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/script/maint/mkpagepacks.py	Sat Jul 18 22:59:51 2009 +0200
+++ b/MoinMoin/script/maint/mkpagepacks.py	Sat Jul 18 23:01:24 2009 +0200
@@ -145,7 +145,9 @@
         pageSets = self.buildPageSets()
 
         print "Creating packages ..."
-        generate_filename = lambda name: os.path.join('tests', 'wiki', 'underlay', 'pages', 'LanguageSetup', 'attachments', '%s.zip' % name)
+        package_path = os.path.join('tests', 'wiki', 'underlay', 'pages', 'LanguageSetup', 'attachments')
+        os.mkdir(package_path)
+        generate_filename = lambda name: os.path.join(package_path, '%s.zip' % name)
         [self.packagePages(list(pages), generate_filename(name), "ReplaceUnderlay") for name, pages in pageSets.items()]
 
         print "Removing pagedirs of packaged pages ..."