mirror of
https://github.com/Kilian/Trimage.git
synced 2026-01-26 01:58:41 -05:00
install trimage as module
This commit is contained in:
parent
6a00b2e25c
commit
d79a5c498b
3 changed files with 2 additions and 7 deletions
|
|
@ -1,7 +1,8 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
import trimage
|
||||||
import subprocess
|
import subprocess
|
||||||
import os, sys
|
import os, sys
|
||||||
|
|
||||||
if __name__ == "__main__":
|
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:])
|
subprocess.call([sys.executable, path] + sys.argv[1:])
|
||||||
|
|
|
||||||
|
|
@ -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
1
ui.py
|
|
@ -1,7 +1,6 @@
|
||||||
from PyQt4.QtCore import *
|
from PyQt4.QtCore import *
|
||||||
from PyQt4.QtGui import *
|
from PyQt4.QtGui import *
|
||||||
|
|
||||||
|
|
||||||
class TrimageTableView(QTableView):
|
class TrimageTableView(QTableView):
|
||||||
"""Init the table drop event."""
|
"""Init the table drop event."""
|
||||||
def __init__(self, parent=None):
|
def __init__(self, parent=None):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue