From d79a5c498b9c6c9e5c09901317a0efc4d4b979fd Mon Sep 17 00:00:00 2001 From: Kilian Valkhof Date: Tue, 23 Mar 2010 15:23:50 +0100 Subject: [PATCH] install trimage as module --- runner/trimage | 3 ++- setup.cfg | 5 ----- ui.py | 1 - 3 files changed, 2 insertions(+), 7 deletions(-) delete mode 100644 setup.cfg diff --git a/runner/trimage b/runner/trimage index a78ce72..596d061 100644 --- a/runner/trimage +++ b/runner/trimage @@ -1,7 +1,8 @@ #!/usr/bin/env python +import trimage import subprocess import os, sys if __name__ == "__main__": - path = "/usr/local/share/trimage/trimage.py" #yeah so this isn't the nices tway... + path = os.path.join(os.path.dirname(trimage.__file__), "trimage.py") subprocess.call([sys.executable, path] + sys.argv[1:]) diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index fc9bdd6..0000000 --- a/setup.cfg +++ /dev/null @@ -1,5 +0,0 @@ -[install] -install_lib=/usr/local/share/trimage -install_data=/usr/local/share/trimage -install_scripts=/usr/local/bin - diff --git a/ui.py b/ui.py index 685c8f3..3594c23 100644 --- a/ui.py +++ b/ui.py @@ -1,7 +1,6 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * - class TrimageTableView(QTableView): """Init the table drop event.""" def __init__(self, parent=None):