diff options
author | hut <hut@lavabit.com> | 2009-12-06 12:31:33 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2009-12-06 12:31:33 +0100 |
commit | 465bff736d234e57efb2e9232df8882f3fd3a5cb (patch) | |
tree | c36725fc98a1e63bfdbe694a96c71cb28d3708f4 /ranger.py | |
parent | 4162b636289f065b056e180389456d9f30ee796c (diff) | |
download | ranger-465bff736d234e57efb2e9232df8882f3fd3a5cb.tar.gz |
changing implementation of options
Diffstat (limited to 'ranger.py')
-rwxr-xr-x | ranger.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ranger.py b/ranger.py index 9a2e59c1..090789c5 100755 --- a/ranger.py +++ b/ranger.py @@ -22,9 +22,12 @@ try: from ranger.main import main except ImportError as errormessage: - print(errormessage) - print("To run an uninstalled copy of ranger,") - print("launch ranger.py in the top directory.") + if str(errormessage).endswith("main"): + print("Can't import the main module.") + print("To run an uninstalled copy of ranger,") + print("launch ranger.py in the top directory.") + else: + raise else: main() |