summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-11-23 12:00:05 +0100
committerhut <hut@lavabit.com>2009-11-23 12:00:05 +0100
commitb0f0027f94a9619652392f1df9ad6c7346f46c0f (patch)
treedf693321e687c117cad96ade9f6f037900fa81ed /ranger
parent2b3db775535290cbbaae570dc79ed3438afe4795 (diff)
downloadranger-b0f0027f94a9619652392f1df9ad6c7346f46c0f.tar.gz
a bunch of half assed implementations
Diffstat (limited to 'ranger')
-rw-r--r--ranger16
1 files changed, 8 insertions, 8 deletions
diff --git a/ranger b/ranger
index 585108b8..175b9803 100644
--- a/ranger
+++ b/ranger
@@ -3,10 +3,7 @@
 
 # TODO: cd after exit
 
-from code import debug
-from code import fm
-from code import ui
-from code import options
+from code import debug, fm, ui, options, environment
 
 # TODO: find out the real name of this script and include files relative to here
 
@@ -16,14 +13,17 @@ from code import options
 
 # TODO: initialize classes
 
-# TODO: run main loop
-
 
 def main():
 	import locale
 	locale.setlocale(locale.LC_ALL, 'en_US.utf8')
 
-	fm.singleton = fm.FM(options.get())
-	fm.singleton.run()
+	path = '.'
+	opt = options.get()
+	env = environment.Environment()
+
+	my_fm = fm.FM(opt, env)
+	my_fm.setup(path, ui.UI(opt))
+	my_fm.run()
 
 if __name__ == "__main__": main()