From f353c4edf28a2501678c1d7140db4efa61b5879e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= Date: Mon, 17 Jun 2013 18:01:07 +0200 Subject: [PATCH] ReadOnly clean should run only on Windows --- kcc/comic2ebook.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kcc/comic2ebook.py b/kcc/comic2ebook.py index b527571..974a97a 100755 --- a/kcc/comic2ebook.py +++ b/kcc/comic2ebook.py @@ -569,7 +569,8 @@ def getWorkFolder(afile): os.rmdir(workdir) # needed for copytree() fails if dst already exists fullPath = os.path.join(workdir, 'OEBPS', 'Images') copytree(afile, fullPath) - sanitizeTreeReadOnly(fullPath) + if sys.platform == 'win32': + sanitizeTreeReadOnly(fullPath) return workdir except OSError: raise