diff options
author | hut <hut@lavabit.com> | 2012-08-05 05:53:14 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2012-08-05 14:36:33 +0200 |
commit | 43d642f47b5d2040d3d0e01768207c1a8bc4dd1d (patch) | |
tree | 5c7b9734acc485692c1debb33556d7442aba041d /ranger | |
parent | d0732dba8b171473a30ffa4d66d74715b839d58c (diff) | |
download | ranger-43d642f47b5d2040d3d0e01768207c1a8bc4dd1d.tar.gz |
core.environment: cleanup
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/core/environment.py | 12 |
1 files 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) |