mirror of
https://github.com/ciromattia/kcc
synced 2025-12-20 13:11:47 +00:00
Tiny code cleanup
This commit is contained in:
10
kcc-c2p.py
10
kcc-c2p.py
@@ -18,16 +18,16 @@
|
|||||||
# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
# PERFORMANCE OF THIS SOFTWARE.
|
# PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
import sys
|
|
||||||
if sys.version_info[0] != 3:
|
|
||||||
print('ERROR: This is Python 3 script!')
|
|
||||||
exit(1)
|
|
||||||
|
|
||||||
__version__ = '4.0.2'
|
__version__ = '4.0.2'
|
||||||
__license__ = 'ISC'
|
__license__ = 'ISC'
|
||||||
__copyright__ = '2012-2014, Ciro Mattia Gonano <ciromattia@gmail.com>, Pawel Jastrzebski <pawelj@vulturis.eu>'
|
__copyright__ = '2012-2014, Ciro Mattia Gonano <ciromattia@gmail.com>, Pawel Jastrzebski <pawelj@vulturis.eu>'
|
||||||
__docformat__ = 'restructuredtext en'
|
__docformat__ = 'restructuredtext en'
|
||||||
|
|
||||||
|
import sys
|
||||||
|
if sys.version_info[0] != 3:
|
||||||
|
print('ERROR: This is Python 3 script!')
|
||||||
|
exit(1)
|
||||||
|
|
||||||
# Dependiences check
|
# Dependiences check
|
||||||
missing = []
|
missing = []
|
||||||
try:
|
try:
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ def splitImage(work):
|
|||||||
path = work[0]
|
path = work[0]
|
||||||
name = work[1]
|
name = work[1]
|
||||||
opt = work[2]
|
opt = work[2]
|
||||||
# Harcoded opttions
|
# Hardcoded options
|
||||||
threshold = 1.0
|
threshold = 1.0
|
||||||
delta = 15
|
delta = 15
|
||||||
fileExpanded = os.path.splitext(name)
|
fileExpanded = os.path.splitext(name)
|
||||||
|
|||||||
Reference in New Issue
Block a user