install trimage as module

This commit is contained in:
Kilian Valkhof 2010-03-23 15:23:50 +01:00
parent 6a00b2e25c
commit d79a5c498b
3 changed files with 2 additions and 7 deletions

View file

@ -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:])

View file

@ -1,5 +0,0 @@
[install]
install_lib=/usr/local/share/trimage
install_data=/usr/local/share/trimage
install_scripts=/usr/local/bin

1
ui.py
View file

@ -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):