add a runner file

This commit is contained in:
Kilian Valkhof 2010-03-23 14:56:30 +01:00
parent 27d3fd782c
commit e96327edbd
2 changed files with 8 additions and 1 deletions

View file

@ -15,7 +15,7 @@ setup(name = "trimage",
"pixmaps/view-refresh.png",
"pixmaps/compressing.gif",
"pixmaps/trimage-icon.png"])],
scripts = ["trimage.py"],
scripts = ["trimage"],
long_description = """Trimage is a cross-platform GUI and command-line interface to optimize image files via optipng, advpng and jpegoptim, depending on the filetype (currently, PNG and JPG files are supported). It was inspired by imageoptim. All image files are losslessy compressed on the highest available compression levels. Trimage gives you various input functions to fit your own workflow: A regular file dialog, dragging and dropping and various command line options.""",
requires = ["PyQt4 (>4.4)"],
classifiers = [

7
trimage Normal file
View file

@ -0,0 +1,7 @@
#!/usr/bin/env python
import subprocess
import os, sys
if __name__ == "__main__":
path = "/usr/local/share/trimage/trimage.py" #yeah so this isn't the nices tway...
subprocess.call([sys.executable, path] + sys.argv[1:])