From e742855d3c98f6dc5888d5aa32c03b0fca7a3ce7 Mon Sep 17 00:00:00 2001 From: hut Date: Sun, 23 Oct 2011 23:11:40 +0200 Subject: Added constant ranger.STABLE to indicate stable versions --- ranger/__init__.py | 1 + ranger/core/helper.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ranger/__init__.py b/ranger/__init__.py index f321ee4f..ae467b30 100644 --- a/ranger/__init__.py +++ b/ranger/__init__.py @@ -36,6 +36,7 @@ TIME_BEFORE_FILE_BECOMES_GARBAGE = 1200 MACRO_DELIMITER = '%' LOGFILE = '/tmp/ranger_errorlog' USAGE = '%prog [options] [path/filename]' +STABLE = False # If the environment variable XDG_CONFIG_HOME is non-empty, CONFDIR is ignored # and the configuration directory will be $XDG_CONFIG_HOME/ranger instead. diff --git a/ranger/core/helper.py b/ranger/core/helper.py index 46d35f7a..c22a52b8 100644 --- a/ranger/core/helper.py +++ b/ranger/core/helper.py @@ -32,7 +32,8 @@ def parse_arguments(): else: default_confdir = CONFDIR - parser = OptionParser(usage=USAGE, version='ranger '+__version__) + parser = OptionParser(usage=USAGE, version='ranger %s%s' \ + % (__version__, " (stable)" if STABLE else "")) parser.add_option('-d', '--debug', action='store_true', help="activate debug mode") -- cgit 1.4.1-2-gfad0