mirror of
https://github.com/wassname/sloth.git
synced 2026-07-29 11:27:41 +08:00
support starting labeltool from another directory
This commit is contained in:
+4
-1
@@ -1,5 +1,8 @@
|
||||
#!/usr/bin/python
|
||||
import sys, os
|
||||
INSTALLDIR=os.path.dirname(__file__)
|
||||
sys.path.append(INSTALLDIR)
|
||||
|
||||
import functools, importlib
|
||||
from PyQt4.QtGui import *
|
||||
from PyQt4.QtCore import *
|
||||
@@ -55,7 +58,7 @@ class MainWindow(QMainWindow):
|
||||
### GUI/Application setup
|
||||
###___________________________________________________________________________________________
|
||||
def setupGui(self):
|
||||
self.ui = uic.loadUi("labeltool.ui", self)
|
||||
self.ui = uic.loadUi(os.path.join(INSTALLDIR,"labeltool.ui"), self)
|
||||
|
||||
self.scene = AnnotationScene(items=config.ITEMS, inserters=config.INSERTERS)
|
||||
self.view = GraphicsView(self)
|
||||
|
||||
Reference in New Issue
Block a user