diff options
author | hut <hut@lavabit.com> | 2010-10-02 06:12:56 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-10-02 06:12:56 +0200 |
commit | a36bfd7b546d62e61a8d35185e8f2b74519a096c (patch) | |
tree | c03ec8048ee50dd60b9a96a2bd6684480790af74 /ranger/__init__.py | |
parent | a457053815d72ef5d7ccfedbfda02101665bdec6 (diff) | |
download | ranger-a36bfd7b546d62e61a8d35185e8f2b74519a096c.tar.gz |
ranger.__init__: cleaned up
Diffstat (limited to 'ranger/__init__.py')
-rw-r--r-- | ranger/__init__.py | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/ranger/__init__.py b/ranger/__init__.py index 0245988e..324cea55 100644 --- a/ranger/__init__.py +++ b/ranger/__init__.py @@ -24,9 +24,7 @@ The keybindings are similar to those of other console programs like vim, mutt or ncmpcpp so the usage will be intuitive and efficient. """ -from os import path, environ -from ranger.ext.openstruct import OpenStruct -from sys import argv +import os from ranger.core.main import main # Information @@ -36,21 +34,4 @@ __author__ = __maintainer__ = 'Roman Zimbelmann' __email__ = 'romanz@lavabit.com' # Constants -USAGE = '%prog [options] [path/filename]' -RANGERDIR = path.dirname(__file__) -LOGFILE = '/tmp/errorlog' -if 'XDG_CONFIG_HOME' in environ and environ['XDG_CONFIG_HOME']: - DEFAULT_CONFDIR = environ['XDG_CONFIG_HOME'] + '/ranger' -else: - DEFAULT_CONFDIR = '~/.config/ranger' -DEBUG = ('-d' in argv or '--debug' in argv) and ('--' not in argv or - (('-d' in argv and argv.index('-d') < argv.index('--')) or - ('--debug' in argv and argv.index('--debug') < argv.index('--')))) - -# Get some valid arguments before actually parsing them in main() -#arg = OpenStruct(debug=DEBUG, clean=False, confdir=DEFAULT_CONFDIR, -# mode=0, flags='', targets=[]) - - -# Clean up -del environ, OpenStruct, argv +RANGERDIR = os.path.dirname(__file__) |