Commits

Anthony Tuininga committed 6464c64

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

Comments (0)

Files changed (1)

cx_Freeze/freezer.py

                         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: