1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-13 09:46:25 +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"
print "\nSplitting images..."
if os.path.isdir(options.sourceDir):
rmtree(options.targetDir, onerror=fixReadOnly)
rmtree(options.targetDir, True)
copytree(options.sourceDir, options.targetDir)
work = []
pagenumber = 0