mirror of
https://github.com/Kilian/Trimage.git
synced 2026-01-26 10:08:40 -05:00
Merge branch 'master' of git@host.fluxility.com:optimg
Conflicts: trimage.py
This commit is contained in:
commit
0617a1dd5a
1 changed files with 2 additions and 2 deletions
|
|
@ -254,7 +254,6 @@ class Worker(QThread):
|
||||||
name = oldfile.fileName()
|
name = oldfile.fileName()
|
||||||
oldfilesize = oldfile.size()
|
oldfilesize = oldfile.size()
|
||||||
oldfilesizestr = size(oldfilesize, system=alternative)
|
oldfilesizestr = size(oldfilesize, system=alternative)
|
||||||
|
|
||||||
# get extention
|
# get extention
|
||||||
print os.path, type(filename), type(os.path), str(filename)
|
print os.path, type(filename), type(os.path), str(filename)
|
||||||
baseName, extention = os.path.splitext(filename)
|
baseName, extention = os.path.splitext(filename)
|
||||||
|
|
@ -269,7 +268,8 @@ class Worker(QThread):
|
||||||
raise Exception('File %s does not have the appropriate extention' % filename)
|
raise Exception('File %s does not have the appropriate extention' % filename)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
retcode = call(runString % {'file' : filename}, shell=True, stdout=PIPE)
|
retcode = call(runString % {'file' : filename}, shell = True, stdout = PIPE)
|
||||||
|
|
||||||
runfile = retcode
|
runfile = retcode
|
||||||
except OSError, e:
|
except OSError, e:
|
||||||
runfile = e
|
runfile = e
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue