Merge branch 'master' of git://github.com/DaPangus/ranger
[ranger.git] / ranger / __init__.py
blobdf759dc836acbb397b8a0056e1e012e0eaa66edd
1 # Copyright (C) 2009, 2010, 2011 Roman Zimbelmann <romanz@lavabit.com>
3 # This program is free software: you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation, either version 3 of the License, or
6 # (at your option) any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16 """
17 A console file manager with VI key bindings.
19 It provides a minimalistic and nice curses interface with a view on the
20 directory hierarchy. The secondary task of ranger is to figure out which
21 program you want to use to open your files with.
22 """
24 import os
26 # Information
27 __license__ = 'GPL3'
28 __version__ = '1.5.2'
29 __author__ = __maintainer__ = 'Roman Zimbelmann'
30 __email__ = 'romanz@lavabit.com'
32 # Constants
33 RANGERDIR = os.path.dirname(__file__)
34 TICKS_BEFORE_COLLECTING_GARBAGE = 100
35 TIME_BEFORE_FILE_BECOMES_GARBAGE = 1200
36 MACRO_DELIMITER = '%'
37 LOGFILE = '/tmp/ranger_errorlog'
38 USAGE = '%prog [options] [path/filename]'
39 STABLE = False
41 # If the environment variable XDG_CONFIG_HOME is non-empty, CONFDIR is ignored
42 # and the configuration directory will be $XDG_CONFIG_HOME/ranger instead.
43 CONFDIR = '~/.config/ranger'
45 from ranger.core.main import main