From e96327edbd138138ab19fd642995ef463e410960 Mon Sep 17 00:00:00 2001 From: Kilian Valkhof Date: Tue, 23 Mar 2010 14:56:30 +0100 Subject: [PATCH] add a runner file --- setup.py | 2 +- trimage | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 trimage diff --git a/setup.py b/setup.py index 18dc958..7538dff 100644 --- a/setup.py +++ b/setup.py @@ -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 = [ diff --git a/trimage b/trimage new file mode 100644 index 0000000..a78ce72 --- /dev/null +++ b/trimage @@ -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:])