1. Michael Merickel
  2. PasteScript

Commits

ianb  committed a1e1b34

Create the top-level directory manually, not with copy_dir, so that the top-level directory isn't svn-added (--svn-repository will create the directory on its own, so it will still work)

  • Participants
  • Parent commits ce6f530
  • Branches default

Comments (0)

Files changed (1)

File paste/script/templates.py

View file
  • Ignore whitespace
 
     def write_files(self, command, output_dir, vars):
         template_dir = self.template_dir()
+        if not os.path.exists(output_dir):
+            print "Creating directory %s" % output_dir
+            if not command.simulate:
+                # Don't let copydir create this top-level directory,
+                # since copydir will svn add it sometimes:
+                os.makedirs(output_dir)
         copydir.copy_dir(template_dir, output_dir,
                          vars,
                          verbosity=command.verbose,