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