1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-12 17:26:23 +00:00

Implemented OSX PATH change to Windows code too + minor tweaks

This commit is contained in:
Paweł Jastrzębski
2013-11-09 20:09:34 +01:00
parent 8687604d26
commit 0a30f1ffb9
4 changed files with 10 additions and 9 deletions

14
.gitignore vendored
View File

@@ -2,13 +2,11 @@
*.cbz
*.cbr
.idea
build
dist
test
Output
kindlegen*
solaio
.DS_Store
Thumbs.db
7za.exe
UnRAR.exe
build
dist
Output
test
solaio
kindlegen*

View File

@@ -41,7 +41,7 @@ You can find the latest released binary at the following links:
- [PyQt4](http://www.riverbankcomputing.co.uk/software/pyqt/download) - Please refer to official documentation for installing into your system.
- [Pillow](http://pypi.python.org/pypi/Pillow/) 2.2.1+ - For comic optimizations. Please refer to official documentation for installing into your system.
- [Psutil](https://code.google.com/p/psutil/) - Please refer to official documentation for installing into your system.
- **To build OS X release on Mavericks (10.9) you need a modified QT:** [Patch](https://github.com/ciromattia/kcc/blob/master/other/QT-4.8.5-QListWidget.patch); if you use [Homebrew](http://brew.sh) take a look at [PR #23793](https://github.com/mxcl/homebrew/pull/23793).
- **To build OS X release you need a modified QT:** [Patch](https://github.com/ciromattia/kcc/blob/master/other/QT-4.8.5-QListWidget.patch)
## USAGE

1
kcc.py
View File

@@ -52,6 +52,7 @@ else:
if getattr(sys, 'frozen', False):
os.chdir(os.path.dirname(os.path.abspath(sys.executable)))
else:
os.environ['PATH'] = os.path.dirname(os.path.abspath(__file__)) + '/other/;' + os.environ['PATH']
os.chdir(os.path.dirname(os.path.abspath(__file__)))
from kcc import KCC_ui

View File

@@ -491,6 +491,7 @@ class ComicPage:
startY = stopY + 1
stopY = startY + 3
if stopY > self.image.size[1] and searching:
startY = self.image.size[1] - 3
stopY = self.image.size[1]
searching = False
# Search fom vertical solid lines
@@ -504,6 +505,7 @@ class ComicPage:
startX = stopX + 1
stopX = startX + 3
if stopX > self.image.size[0] and searching:
startX = self.image.size[0] - 3
stopX = self.image.size[0]
searching = False
if fill > 0: