summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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'