Skip to content
Permalink
Browse files

Fix TRAVIS qgis_global_settings path

  • Loading branch information
jgrocha committed Aug 22, 2017
1 parent 8486767 commit 59aa5d3c7b851fa40e9e9067f44c03745da8d244
Showing with 4 additions and 3 deletions.
  1. +4 −3 tests/src/python/test_qgis_global_settings.py
@@ -39,9 +39,10 @@ class TestQgsGlobalSettings(unittest.TestCase):

def test_global_settings_exist(self):
qDebug('QgsApplication.pkgDataPath(): {0}'.format(QgsApplication.pkgDataPath()))
# Path after deployment: QgsApplication.pkgDataPath() + '/qgis_global_settings.ini'
# QgsSettings.setGlobalSettingsPath(QgsApplication.pkgDataPath() + '/resources/qgis_global_settings.ini')
QgsSettings.setGlobalSettingsPath(QgsApplication.pkgDataPath() + '/qgis_global_settings.ini')
# Path after deployment
# QgsSettings.setGlobalSettingsPath(QgsApplication.pkgDataPath() + '/qgis_global_settings.ini')
# Path before deployment
QgsSettings.setGlobalSettingsPath(QgsApplication.pkgDataPath() + '/resources/qgis_global_settings.ini')
self.settings = QgsSettings('testqgissettings', 'testqgissettings')
settings = QgsSettings()
# qDebug('settings.allKeys(): {0}'.format(settings.allKeys()))

0 comments on commit 59aa5d3

Please sign in to comment.
You can’t perform that action at this time.