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:
14
.gitignore
vendored
14
.gitignore
vendored
@@ -2,13 +2,11 @@
|
|||||||
*.cbz
|
*.cbz
|
||||||
*.cbr
|
*.cbr
|
||||||
.idea
|
.idea
|
||||||
build
|
|
||||||
dist
|
|
||||||
test
|
|
||||||
Output
|
|
||||||
kindlegen*
|
|
||||||
solaio
|
|
||||||
.DS_Store
|
.DS_Store
|
||||||
Thumbs.db
|
Thumbs.db
|
||||||
7za.exe
|
build
|
||||||
UnRAR.exe
|
dist
|
||||||
|
Output
|
||||||
|
test
|
||||||
|
solaio
|
||||||
|
kindlegen*
|
||||||
|
|||||||
@@ -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.
|
- [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.
|
- [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.
|
- [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
|
## USAGE
|
||||||
|
|
||||||
|
|||||||
1
kcc.py
1
kcc.py
@@ -52,6 +52,7 @@ else:
|
|||||||
if getattr(sys, 'frozen', False):
|
if getattr(sys, 'frozen', False):
|
||||||
os.chdir(os.path.dirname(os.path.abspath(sys.executable)))
|
os.chdir(os.path.dirname(os.path.abspath(sys.executable)))
|
||||||
else:
|
else:
|
||||||
|
os.environ['PATH'] = os.path.dirname(os.path.abspath(__file__)) + '/other/;' + os.environ['PATH']
|
||||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||||
from kcc import KCC_ui
|
from kcc import KCC_ui
|
||||||
|
|
||||||
|
|||||||
@@ -491,6 +491,7 @@ class ComicPage:
|
|||||||
startY = stopY + 1
|
startY = stopY + 1
|
||||||
stopY = startY + 3
|
stopY = startY + 3
|
||||||
if stopY > self.image.size[1] and searching:
|
if stopY > self.image.size[1] and searching:
|
||||||
|
startY = self.image.size[1] - 3
|
||||||
stopY = self.image.size[1]
|
stopY = self.image.size[1]
|
||||||
searching = False
|
searching = False
|
||||||
# Search fom vertical solid lines
|
# Search fom vertical solid lines
|
||||||
@@ -504,6 +505,7 @@ class ComicPage:
|
|||||||
startX = stopX + 1
|
startX = stopX + 1
|
||||||
stopX = startX + 3
|
stopX = startX + 3
|
||||||
if stopX > self.image.size[0] and searching:
|
if stopX > self.image.size[0] and searching:
|
||||||
|
startX = self.image.size[0] - 3
|
||||||
stopX = self.image.size[0]
|
stopX = self.image.size[0]
|
||||||
searching = False
|
searching = False
|
||||||
if fill > 0:
|
if fill > 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user