Skip to content

Commit

Permalink
Fix TRAVIS qgis_global_settings path
Browse files Browse the repository at this point in the history
  • Loading branch information
jgrocha committed Aug 22, 2017
1 parent 8486767 commit 59aa5d3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/src/python/test_qgis_global_settings.py
Expand Up @@ -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()))
Expand Down

0 comments on commit 59aa5d3

Please sign in to comment.