From 166398d4ba1527d6d0d59f000dee42071b4eabde Mon Sep 17 00:00:00 2001 From: hut Date: Tue, 12 Oct 2010 05:01:06 +0200 Subject: core.main: Fixed object initialization order --- ranger/core/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ranger/core/main.py b/ranger/core/main.py index 42118516..db9f3c11 100644 --- a/ranger/core/main.py +++ b/ranger/core/main.py @@ -63,14 +63,14 @@ def main(): crash_traceback = None try: # Initialize objects - EnvironmentAware.env = Environment(target) fm = FM() + FileManagerAware.fm = fm + EnvironmentAware.env = Environment(target) fm.tabs = dict((n+1, os.path.abspath(path)) for n, path \ in enumerate(targets[:9])) load_settings(fm, arg.clean) if fm.env.username == 'root': fm.settings.preview_files = False - FileManagerAware.fm = fm fm.ui = UI() if not arg.debug: curses_interrupt_handler.install_interrupt_handler() -- cgit 1.4.1-2-gfad0