diff options
-rwxr-xr-x | ranger.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger.py b/ranger.py index ffdf13aa..53fd8bdb 100755 --- a/ranger.py +++ b/ranger.py @@ -48,7 +48,7 @@ sys.dont_write_bytecode = '-c' in argv or '--clean' in argv __doc__ = """Ranger - file browser for the unix terminal""" # Don't import ./ranger when running an installed binary at /usr/bin/ranger -if os.path.isdir('ranger'): +if os.path.exists('ranger') and '/' in os.path.normpath(__file__): try: sys.path.remove(os.path.abspath('.')) except: |