summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-11-25 17:55:34 +0100
committerhut <hut@lavabit.com>2009-11-25 17:55:34 +0100
commit5822dff7d91472bf2fc337c68f144e0ce1de09ae (patch)
tree7d40218b67f13c9c95141aa5bcb4aa292c42924a /ranger
parentcfbb8c84355f28bc7f669105f90c7aae0a972569 (diff)
downloadranger-5822dff7d91472bf2fc337c68f144e0ce1de09ae.tar.gz
implemented more stuff
Diffstat (limited to 'ranger')
-rwxr-xr-x[-rw-r--r--]ranger21
1 files changed, 14 insertions, 7 deletions
diff --git a/ranger b/ranger
index b6050ca8..d83e8a3e 100644..100755
--- a/ranger
+++ b/ranger
@@ -3,7 +3,7 @@
 
 # TODO: cd after exit
 
-from code import debug, fm, ui, options, environment
+from code import debug, fm, defaultui, options, environment
 
 # TODO: find out the real name of this script and include files relative to here
 
@@ -16,12 +16,19 @@ def main():
 	os.stat_float_times(True)
 	locale.setlocale(locale.LC_ALL, 'en_US.utf8')
 
-	path = '/srv/music/compilations/'
-	opt = options.get()
-	env = environment.Environment()
+	try:
+		path = '/srv/music/compilations/'
+		opt = options.get()
+		env = environment.Environment(opt)
+
+		my_ui = defaultui.DefaultUI(env)
+		my_fm = fm.FM(env)
+		my_fm.feed(path, my_ui)
+		my_fm.run()
+
+	except:
+		my_ui.exit()
+		raise
 
-	my_fm = fm.FM(opt, env)
-	my_fm.setup(path, ui.UI(opt))
-	my_fm.run()
 
 if __name__ == "__main__": main()
> ^
e6cbe9c ^
dc5c070 ^


e6cbe9c ^
e743836 ^
dc5c070 ^




901b3ed ^
1076f2b

901b3ed ^
0c3544d ^
72655f0 ^





901b3ed ^
72655f0 ^
3af6434 ^
72655f0 ^
3af6434 ^
72655f0 ^




3af6434 ^







72655f0 ^





3af6434 ^
72655f0 ^

7b5638f ^





1549faf ^


3af6434 ^

1549faf ^









ba59bc8 ^
1549faf ^
3af6434 ^

1549faf ^
0c3544d ^
0e5c819 ^












0c3544d ^

dc5c070 ^

5ef6ef1 ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112