1. Anthony Tuininga
  2. cx_Freeze

Commits

Anthony Tuininga  committed 6464c64

Ensure that empty directories are created as needed in the target as requested
by Clemens Hermann.

  • Participants
  • Parent commits fa8e32a
  • Branches default

Comments (0)

Files changed (1)

File cx_Freeze/freezer.py

View file
                         dirNames.remove(".svn")
                     if "CVS" in dirNames:
                         dirNames.remove("CVS")
+                    fullTargetDir = os.path.join(self.targetDir,
+                            targetFileName, shortPath)
+                    self._CreateDirectory(fullTargetDir)
                     for fileName in fileNames:
                         fullSourceName = os.path.join(path, fileName)
-                        fullTargetName = os.path.join(self.targetDir,
-                                targetFileName, shortPath, fileName)
+                        fullTargetName = os.path.join(fullTargetDir, fileName)
                         self._CopyFile(fullSourceName, fullTargetName,
                                 copyDependentFiles = False)
             else: