summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-11-22 23:56:47 +0100
committerhut <hut@lavabit.com>2009-11-22 23:56:47 +0100
commit2b3db775535290cbbaae570dc79ed3438afe4795 (patch)
treea385d5c5a5491c4a19b77c945030ea141926de76 /ranger
parentec338c02cf3b31d2ed1438752c338bd6123f3044 (diff)
downloadranger-2b3db775535290cbbaae570dc79ed3438afe4795.tar.gz
the basic loop
Diffstat (limited to 'ranger')
-rw-r--r--ranger29
1 files changed, 29 insertions, 0 deletions
diff --git a/ranger b/ranger
new file mode 100644
index 00000000..585108b8
--- /dev/null
+++ b/ranger
@@ -0,0 +1,29 @@
+#!/usr/bin/python
+# coding=utf-8
+
+# TODO: cd after exit
+
+from code import debug
+from code import fm
+from code import ui
+from code import options
+
+# TODO: find out the real name of this script and include files relative to here
+
+# TODO: Parse arguments
+
+# TODO: load config
+
+# 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()
+
+if __name__ == "__main__": main()