summary refs log tree commit diff stats
path: root/ranger.py
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-06-22 00:50:58 +0200
committerhut <hut@lavabit.com>2010-06-22 00:50:58 +0200
commitb290073bce2ed945a363132b45db34b934c31276 (patch)
treeb4d473899debf10e9cc45ee38de9f490ba1c228e /ranger.py
parent6613bf4181f3d6d4b612e98e865192b73ebbe90c (diff)
parent3817c8b47e85d3644383182c2b3909a2dbdd0b3b (diff)
downloadranger-b290073bce2ed945a363132b45db34b934c31276.tar.gz
Merge branch 'master' into preview
Diffstat (limited to 'ranger.py')
-rwxr-xr-xranger.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/ranger.py b/ranger.py
index ccc9f0d6..f290d796 100755
--- a/ranger.py
+++ b/ranger.py
@@ -30,6 +30,8 @@ fi
 return 1
 """
 
+import sys
+
 # Redefine the docstring, since the previous one was hijacked to
 # embed a shellscript.
 __doc__ = """Ranger - file browser for the unix terminal"""
@@ -40,7 +42,6 @@ __doc__ = """Ranger - file browser for the unix terminal"""
 try:
 	from ranger.__main__ import main
 except ImportError:
-	import sys
 	if '-d' not in sys.argv and '--debug' not in sys.argv:
 		print("Can't import the main module.")
 		print("To run an uninstalled copy of ranger,")
@@ -48,4 +49,4 @@ except ImportError:
 	else:
 		raise
 else:
-	main()
+	sys.exit(main())