From 43d642f47b5d2040d3d0e01768207c1a8bc4dd1d Mon Sep 17 00:00:00 2001 From: hut Date: Sun, 5 Aug 2012 05:53:14 +0200 Subject: core.environment: cleanup --- ranger/core/environment.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/ranger/core/environment.py b/ranger/core/environment.py index 8c8eeffa..9febd923 100644 --- a/ranger/core/environment.py +++ b/ranger/core/environment.py @@ -45,18 +45,14 @@ class Environment(SettingsAware, FileManagerAware, SignalDispatcher, A collection of data which is relevant for more than one class. """ - cwd = None # current directory - history = None - last_search = None - pathway = None - path = None - def __init__(self, path): SignalDispatcher.__init__(self) + self.cwd = None # Current Working Directory + self._cf = None # Current File + self.history = History(self.settings.max_history_size, unique=False) + self.last_search = None self.path = abspath(expanduser(path)) - self._cf = None self.pathway = () - self.history = History(self.settings.max_history_size, unique=False) self.signal_bind('move', self._set_cf_from_signal, priority=0.1, weak=True) -- cgit 1.4.1-2-gfad0