diff options
author | hut <hut@lavabit.com> | 2013-01-12 07:40:47 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2013-01-12 07:40:47 +0100 |
commit | 6ceaea08c811002f300c2ffa28413a7d2b1a700a (patch) | |
tree | 9238f4160bc03db2e174e44818072eb4a67001c1 /ranger | |
parent | 84fd3feabf235c6d86984f050955916d17456d47 (diff) | |
download | ranger-6ceaea08c811002f300c2ffa28413a7d2b1a700a.tar.gz |
core.main: Fix plugins when using custom color schemes
fm.source(custom_conf) could execute a "set colorscheme = ..." which would lead to a "allow_access_to_confdir(..., False)" and that would result in ranger not being able to find plugins since the confdir is not in os.path anymore.
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/core/main.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ranger/core/main.py b/ranger/core/main.py index 80b2e9a7..226d93cd 100644 --- a/ranger/core/main.py +++ b/ranger/core/main.py @@ -252,6 +252,8 @@ def load_settings(fm, clean): except ImportError: pass + allow_access_to_confdir(ranger.arg.confdir, False) + # Load rc.conf custom_conf = fm.confpath('rc.conf') default_conf = fm.relpath('config', 'rc.conf') @@ -261,6 +263,8 @@ def load_settings(fm, clean): if os.access(custom_conf, os.R_OK): fm.source(custom_conf) + allow_access_to_confdir(ranger.arg.confdir, True) + # XXX Load plugins (experimental) try: plugindir = fm.confpath('plugins') |