1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-16 03:06:33 +00:00

Attempt to fix access denied errors

This commit is contained in:
Paweł Jastrzębski
2013-10-07 22:30:07 +02:00
parent 3f0eea44f4
commit 38d3ae6a6a

View File

@@ -224,7 +224,7 @@ def main(argv=None, qtGUI=None):
options.targetDir = args[0] + "-Splitted" options.targetDir = args[0] + "-Splitted"
print "\nSplitting images..." print "\nSplitting images..."
if os.path.isdir(options.sourceDir): if os.path.isdir(options.sourceDir):
rmtree(options.targetDir, onerror=fixReadOnly) rmtree(options.targetDir, True)
copytree(options.sourceDir, options.targetDir) copytree(options.sourceDir, options.targetDir)
work = [] work = []
pagenumber = 0 pagenumber = 0