diff options
author | hut <hut@lavabit.com> | 2010-05-10 18:32:04 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-05-10 21:03:41 +0200 |
commit | 5b8416382ea097a8cfb4e072a4c000325b0a63f7 (patch) | |
tree | 80ba456359568c91c15deb6cf509515a73e4dd55 /ranger | |
parent | 3ee05c163e370d28dfabc9c43b0a3b7c0a212443 (diff) | |
download | ranger-5b8416382ea097a8cfb4e072a4c000325b0a63f7.tar.gz |
main: added comment
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/__main__.py | 5 |
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() |