about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-05-10 18:32:04 +0200
committerhut <hut@lavabit.com>2010-05-10 21:03:41 +0200
commit5b8416382ea097a8cfb4e072a4c000325b0a63f7 (patch)
tree80ba456359568c91c15deb6cf509515a73e4dd55
parent3ee05c163e370d28dfabc9c43b0a3b7c0a212443 (diff)
downloadranger-5b8416382ea097a8cfb4e072a4c000325b0a63f7.tar.gz
main: added comment
-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()