]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/config.py
Changed phrase_settings.py to phrase-settings.json and added migration function for...
[nominatim.git] / nominatim / config.py
index 564884f612a40d97eed89cff157abdc77d8008f8..a22f90ab247b7b63b11b15068845623afa3aa778 100644 (file)
@@ -25,8 +25,8 @@ class Configuration:
         avoid conflicts with other environment variables.
     """
 
-    def __init__(self, project_dir, config_dir, environ=os.environ):
-        self.environ = environ
+    def __init__(self, project_dir, config_dir, environ=None):
+        self.environ = environ or os.environ
         self.project_dir = project_dir
         self.config_dir = config_dir
         self._config = dotenv_values(str((config_dir / 'env.defaults').resolve()))