about summary refs log tree commit diff stats
path: root/ranger.py
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-11-29 15:19:45 +0100
committerhut <hut@lavabit.com>2009-11-29 15:19:45 +0100
commit9dc6fe07975ef2d489e5071f4e6d7223a33cb3b3 (patch)
tree9f7c72916c67d7a94846313bf7bed7b43f939831 /ranger.py
parent3d566884280b1db24cb9fa13adde3985f0e7c5a2 (diff)
downloadranger-9dc6fe07975ef2d489e5071f4e6d7223a33cb3b3.tar.gz
started to implement colorschemes
Diffstat (limited to 'ranger.py')
-rwxr-xr-xranger.py17
1 files changed, 11 insertions, 6 deletions
diff --git a/ranger.py b/ranger.py
index 9e8dbd70..b44fad46 100755
--- a/ranger.py
+++ b/ranger.py
@@ -20,6 +20,7 @@ from ranger.environment import Environment
 from ranger.command import CommandList
 from ranger.conf import keys, options
 from ranger.gui.defaultui import DefaultUI as UI
+from ranger.conf.colorschemes.snow import Snow as ColorScheme
 
 import sys, os, locale
 
@@ -41,22 +42,26 @@ locale.setlocale(locale.LC_ALL, 'en_US.utf8')
 try:
 	path = os.path.abspath('.')
 	opt = options.dummy()
+
 	env = Environment(opt)
 	commandlist = CommandList()
+	colorscheme = ColorScheme()
 	keys.initialize_commands(commandlist)
 
-	my_ui = UI(env, commandlist)
+	my_ui = UI(env, commandlist, colorscheme)
 	my_fm = FM(env)
 	my_fm.feed(path, my_ui)
 	my_fm.run()
 
-except BaseException as original_error:
-	try: my_ui.exit()
-	except: pass
-
-	raise original_error
+#except BaseException as original_error:
+#	try: my_ui.exit()
+#	except: pass
+#
+#	raise original_error
 
 finally:
+	try: my_ui.exit()
+	except: pass
 	if cd_after_exit:
 		try: sys.__stderr__.write(env.pwd.path)
 		except: pass