#!/usr/bin/env python
import os, sys
from os.path import dirname, realpath
sys.path.insert(1, dirname(dirname(dirname(realpath( __file__ )))))
from PyQt4.QtGui import QApplication
from sloth.core.labeltool import LabelTool
from sloth import APP_NAME, ORGANIZATION_NAME, ORGANIZATION_DOMAIN

if __name__ == '__main__':
    app = QApplication(sys.argv)
    app.setOrganizationName(ORGANIZATION_NAME)
    app.setOrganizationDomain(ORGANIZATION_DOMAIN)
    app.setApplicationName(APP_NAME)

    labeltool = LabelTool()
    labeltool.execute_from_commandline(sys.argv)

    sys.exit(app.exec_())

