diff options
Diffstat (limited to 'ranger/shared/settings.py')
-rw-r--r-- | ranger/shared/settings.py | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/ranger/shared/settings.py b/ranger/shared/settings.py index c5544a47..e7098792 100644 --- a/ranger/shared/settings.py +++ b/ranger/shared/settings.py @@ -172,10 +172,17 @@ class SettingsAware(object): except ImportError: from ranger.defaults import apps settings._raw_set('apps', apps) + + SettingsAware.settings = settings + + @staticmethod + def _setup_keys(): # ugly! but works. + import ranger.api.keys + import ranger.shared + env = ranger.shared.EnvironmentAware.env + ranger.api.keys.keymanager = env.keymanager + from ranger.defaults import keys try: import keys except ImportError: - from ranger.defaults import keys - settings._raw_set('keys', keys) - - SettingsAware.settings = settings + pass |