1
0
mirror of https://github.com/ciromattia/kcc synced 2026-07-05 04:25:31 +00:00

Made split filenames more idiot-proof

This commit is contained in:
Paweł Jastrzębski
2013-05-28 13:57:11 +02:00
parent 43ca5ac5b9
commit b068d82ccf
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -218,8 +218,8 @@ class ComicPage:
leftbox = (0, 0, width, height / 2)
rightbox = (0, height / 2, width, height)
filename = os.path.splitext(os.path.basename(self.origFileName))
fileone = targetdir + '/' + filename[0] + '-1' + filename[1]
filetwo = targetdir + '/' + filename[0] + '-2' + filename[1]
fileone = targetdir + '/' + filename[0] + '-kcca' + filename[1]
filetwo = targetdir + '/' + filename[0] + '-kccb' + filename[1]
try:
if righttoleft:
pageone = self.image.crop(rightbox)