summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/__main__.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/ranger/__main__.py b/ranger/__main__.py
index d63ec63b..887f8e28 100644
--- a/ranger/__main__.py
+++ b/ranger/__main__.py
@@ -208,6 +208,7 @@ def main():
 
 
 if __name__ == '__main__':
-	top_dir = os.path.dirname(sys.path[0])
-	sys.path.insert(0, top_dir)
+	# The ranger directory can be executed directly, for example by typing
+	# python /usr/lib/python2.6/site-packages/ranger
+	sys.path.insert(0, os.path.dirname(sys.path[0]))
 	main()
73a3d2978b5e9'>3ba63579 ^
7ec3e3b4 ^
3ba63579 ^


decaddb4 ^



6f5d7864 ^
7ec3e3b4 ^
57699011 ^
6f5d7864 ^
7ec3e3b4 ^
57699011 ^
6f5d7864 ^
7ec3e3b4 ^




57699011 ^
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