diff --git a/tests/src/python/test_qgis_global_settings.py b/tests/src/python/test_qgis_global_settings.py index 5e218aa5f06..9c6fbab1394 100644 --- a/tests/src/python/test_qgis_global_settings.py +++ b/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()))