Newer
Older
# -*- coding: utf-8 -*-
"""
***************************************************************************

benjamin.jakimow@geo.hu-berlin.de
committed
Date : 10.08.2017

benjamin.jakimow@geo.hu-berlin.de
committed
Email : benjamin jakimow at geo dot hu-berlin dot de
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************
"""

benjamin.jakimow@geo.hu-berlin.de
committed
def run():
from eotimeseriesviewer.tests import initQgisApplication
import qgis.utils
from qgis.gui import QgisInterface
qgisIface = isinstance(qgis.utils.iface, QgisInterface)
if not qgisIface:
qgsApp = initQgisApplication()
from eotimeseriesviewer import initAll
initAll()
from eotimeseriesviewer.main import TimeSeriesViewer
ts.run()
if not qgisIface:
qgsApp.exec_()
qgsApp.exitQgis()