summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-09-29 19:10:07 +0200
committerhut <hut@lavabit.com>2010-09-29 19:10:07 +0200
commitb4250dbc37e8d2505d699928218e439786cb4981 (patch)
tree9c2a842a42da60a5ae3137eae0528afcde25b3e9
parent08f08fb922672f7e24d6af8e4324169362e158b8 (diff)
downloadranger-b4250dbc37e8d2505d699928218e439786cb4981.tar.gz
Small simplification of ranger.py
-rwxr-xr-xranger.py5
-rw-r--r--ranger/__init__.py1
2 files changed, 3 insertions, 3 deletions
diff --git a/ranger.py b/ranger.py
index 3d0f4525..fbceab23 100755
--- a/ranger.py
+++ b/ranger.py
@@ -47,6 +47,5 @@ sys.dont_write_bytecode = '-c' in argv or '--clean' in argv
 __doc__ = """Ranger - file browser for the unix terminal"""
 
 # Start ranger
-import ranger.__main__
-exit_code = ranger.__main__.main() 
-raise SystemExit(exit_code)
+import ranger
+sys.exit(ranger.main())
diff --git a/ranger/__init__.py b/ranger/__init__.py
index f0fab087..877c9089 100644
--- a/ranger/__init__.py
+++ b/ranger/__init__.py
@@ -19,6 +19,7 @@ from os import path, environ
 from os.path import join as _join
 from ranger.ext.openstruct import OpenStruct
 from sys import argv
+from __main__ import main
 
 # Information
 __license__ = 'GPL3'