summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-05-14 21:51:00 +0200
committerhut <hut@lavabit.com>2010-05-14 21:51:00 +0200
commit3cec441a10f4d4358fba414005163ed1a6c539f2 (patch)
tree24303bb2b770c8973584b70b12f51c33eb4526c3
parent1cbc0f48b92ef9dd24f245058a565742a924df1e (diff)
downloadranger-3cec441a10f4d4358fba414005163ed1a6c539f2.tar.gz
main: fixed --clean
-rw-r--r--ranger/__main__.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/ranger/__main__.py b/ranger/__main__.py
index e3d98d6e..916c5a0e 100644
--- a/ranger/__main__.py
+++ b/ranger/__main__.py
@@ -73,8 +73,9 @@ def allow_access_to_confdir(confdir, allow):
 
 
 def load_settings(fm, clean):
-	import ranger
+	import ranger.shared
 	import ranger.api.commands
+	import ranger.api.keys
 	if not clean:
 		allow_access_to_confdir(ranger.arg.confdir, True)
 
@@ -97,10 +98,8 @@ def load_settings(fm, clean):
 			from ranger.defaults import apps
 
 		# Load keys
-		from ranger import shared, api
-		from ranger.api import keys
-		keymanager = shared.EnvironmentAware.env.keymanager
-		keys.keymanager = keymanager
+		keymanager = ranger.shared.EnvironmentAware.env.keymanager
+		ranger.api.keys.keymanager = keymanager
 		from ranger.defaults import keys
 		try:
 			import keys
@@ -115,6 +114,9 @@ def load_settings(fm, clean):
 	else:
 		comcont = ranger.api.commands.CommandContainer()
 		ranger.api.commands.alias = comcont.alias
+		from ranger.api import keys
+		keymanager = ranger.shared.EnvironmentAware.env.keymanager
+		ranger.api.keys.keymanager = keymanager
 		from ranger.defaults import commands, keys, apps
 		comcont.load_commands_from_module(commands)
 		commands = comcont
r Kartik K. Agaram <vc@akkartik.com> 2015-11-29 20:33:12 -0800 2612' href='/akkartik/mu/commit/084console.mu?h=hlt&id=cc20549cfd14beea249a05617931c99d55ed0440'>cc20549c ^
b0bf5321 ^
e3092e7b ^

b0bf5321 ^
77d5b5d6 ^
104854ca ^
b0bf5321 ^
0d2686c7 ^
e3092e7b ^

b0bf5321 ^
77d5b5d6 ^
104854ca ^
e3092e7b ^
104854ca ^
0d2686c7 ^
b0bf5321 ^
e3092e7b ^
502d2ea5 ^
0d2686c7 ^
502d2ea5 ^
b0bf5321 ^
1ead3562 ^
e3092e7b ^
0d2686c7 ^


1ead3562 ^
e3092e7b ^
6aa42628 ^
45c08fea ^
1ead3562 ^
e3092e7b ^

c6c19a27 ^


b0bf5321 ^
77d5b5d6 ^
104854ca ^
502d2ea5 ^
1ead3562 ^

7bf9212f ^


e3092e7b ^
f8c0ef3e ^
b0bf5321 ^
77d5b5d6 ^
104854ca ^
f8c0ef3e ^
502d2ea5 ^



136412d2 ^
502d2ea5 ^
f8c0ef3e ^

5b1219ca ^
f8c0ef3e ^
6a0f71b9 ^
b0bf5321 ^
77d5b5d6 ^
104854ca ^
6a0f71b9 ^
502d2ea5 ^

6a0f71b9 ^

5e9eff8c ^

b0bf5321 ^
77d5b5d6 ^
104854ca ^
5e9eff8c ^
502d2ea5 ^
5e9eff8c ^
1ead3562 ^
5e9eff8c ^
104854ca ^
5e9eff8c ^
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