Skip to content
Snippets Groups Projects
Commit 8b31e0a5 authored by benjamin.jakimow@geo.hu-berlin.de's avatar benjamin.jakimow@geo.hu-berlin.de
Browse files

added SETTINGS (QSettings)

added QGIS_TSV_BRIDGE to be used as package instance of the QgsTSVBridge object
parent 76ffd1ca
No related branches found
No related tags found
No related merge requests found
import os, sys, fnmatch import os, sys, fnmatch
import six import six
from PyQt4.QtCore import QSettings
from PyQt4.QtGui import QIcon
jp = os.path.join jp = os.path.join
dn = os.path.dirname dn = os.path.dirname
mkdir = lambda p: os.makedirs(p, exist_ok=True) mkdir = lambda p: os.makedirs(p, exist_ok=True)
...@@ -15,6 +16,15 @@ PATH_EXAMPLE_TIMESERIES = jp(DIR_EXAMPLES,'ExampleTimeSeries.csv') ...@@ -15,6 +16,15 @@ PATH_EXAMPLE_TIMESERIES = jp(DIR_EXAMPLES,'ExampleTimeSeries.csv')
PATH_LICENSE = jp(DIR_REPO, 'GPL-3.0.txt') PATH_LICENSE = jp(DIR_REPO, 'GPL-3.0.txt')
DEBUG = True DEBUG = True
SETTINGS = QSettings(QSettings.UserScope, 'HU Geomatics', 'TimeSeriesViewer')
QGIS_TSV_BRIDGE = None
def icon():
return QIcon(':/timeseriesviewer/icons/icon.png')
def dprint(text, file=None): def dprint(text, file=None):
if DEBUG: if DEBUG:
six._print('DEBUG::{}'.format(text), file=file) six._print('DEBUG::{}'.format(text), file=file)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment