about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-10-12 05:01:06 +0200
committerhut <hut@lavabit.com>2010-10-12 05:04:37 +0200
commit166398d4ba1527d6d0d59f000dee42071b4eabde (patch)
tree54fdc5ed574710fdf9b4d249965d0d57cd379eb7
parent54c8375ab74309279f5ba114a003b3af1b6cc78f (diff)
downloadranger-166398d4ba1527d6d0d59f000dee42071b4eabde.tar.gz
core.main: Fixed object initialization order
-rw-r--r--ranger/core/main.py4
1 files 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()