diff --git a/rhodecode/__init__.py b/rhodecode/__init__.py --- a/rhodecode/__init__.py +++ b/rhodecode/__init__.py @@ -43,6 +43,10 @@ CELERY_EAGER = False # link to config for pylons CONFIG = {} +# Populated with the settings dictionary from application init in +# rhodecode.conf.environment.load_pyramid_environment +PYRAMID_SETTINGS = {} + # Linked module for extensions EXTENSIONS = {} diff --git a/rhodecode/config/environment.py b/rhodecode/config/environment.py --- a/rhodecode/config/environment.py +++ b/rhodecode/config/environment.py @@ -145,6 +145,9 @@ def load_pyramid_environment(global_conf settings_merged = global_config.copy() settings_merged.update(settings) + # Store the settings to make them available to other modules. + rhodecode.PYRAMID_SETTINGS = settings_merged + # If this is a test run we prepare the test environment like # creating a test database, test search index and test repositories. # This has to be done before the database connection is initialized.