diff --git a/python/testing/__init__.py b/python/testing/__init__.py index 1e8e8785d56b..436c15f995d2 100644 --- a/python/testing/__init__.py +++ b/python/testing/__init__.py @@ -26,6 +26,7 @@ import difflib import functools import filecmp +import tempfile from qgis.PyQt.QtCore import QVariant from qgis.core import QgsApplication, QgsFeatureRequest, NULL @@ -421,6 +422,7 @@ def start_app(cleanup=True): # no need to mess with it here. QGISAPP = QgsApplication(argvb, myGuiFlag) + os.environ['QGIS_CUSTOM_CONFIG_PATH'] = tempfile.mkdtemp('', 'QGIS-PythonTestConfigPath') QGISAPP.initQgis() print(QGISAPP.showSettings())