ReadOnly clean should run only on Windows

This commit is contained in:
Paweł Jastrzębski committed 2013-06-17 18:01:07 +02:00
1 parent acb3e5058d
commit f353c4edf2
1 file changed
+1
+1
View File
@@ -569,6 +569,7 @@ def getWorkFolder(afile):
os.rmdir(workdir) # needed for copytree() fails if dst already exists os.rmdir(workdir) # needed for copytree() fails if dst already exists
fullPath = os.path.join(workdir, 'OEBPS', 'Images') fullPath = os.path.join(workdir, 'OEBPS', 'Images')
copytree(afile, fullPath) copytree(afile, fullPath)
if sys.platform == 'win32':
sanitizeTreeReadOnly(fullPath) sanitizeTreeReadOnly(fullPath)
return workdir return workdir
except OSError: except OSError: