diff options
author | hut <hut@lavabit.com> | 2010-04-18 21:50:15 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-04-18 21:50:15 +0200 |
commit | 1b43b21dc038ea4146aa138e0dc21f49e954f851 (patch) | |
tree | a7dbe9703f09421283225e3871d94e18b3d8bc03 | |
parent | e0bc0ff6017ccf4fb55ed400266161d4c0131435 (diff) | |
download | ranger-1b43b21dc038ea4146aa138e0dc21f49e954f851.tar.gz |
shared.settings: Bugfix, read the options properly
-rw-r--r-- | ranger/shared/settings.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ranger/shared/settings.py b/ranger/shared/settings.py index 16167fe4..910f20bf 100644 --- a/ranger/shared/settings.py +++ b/ranger/shared/settings.py @@ -13,6 +13,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +import sys import ranger from ranger.ext.signal_dispatcher import SignalDispatcher from ranger.ext.openstruct import OpenStruct @@ -140,12 +141,14 @@ class SettingsAware(object): if not ranger.arg.clean: # overwrite single default options with custom options + sys.path[0:0] = [ranger.arg.confdir] try: import options as my_options except ImportError: pass else: settings._setting_sources.append(my_options) + del sys.path[0] from ranger.defaults import options as default_options settings._setting_sources.append(default_options) |