From b0905c4c5c5c1f4fa6b78c8ed823958bf2c83d9e Mon Sep 17 00:00:00 2001 From: cedricbonhomme Date: Thu, 7 Jul 2011 18:50:05 +0200 Subject: Minor improvements: if pyAggr3g470r.cfg is not present, try to read pyAggr3g470r.cfg-sample. --- utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/utils.py b/utils.py index e145b6b2..6c7ee14b 100755 --- a/utils.py +++ b/utils.py @@ -59,7 +59,10 @@ import os import ConfigParser # load the configuration config = ConfigParser.RawConfigParser() -config.read("./cfg/pyAggr3g470r.cfg") +try: + config.read("./cfg/pyAggr3g470r.cfg") +except: + config.read("./cfg/pyAggr3g470r.cfg-sample") path = os.path.abspath(".") sqlite_base = os.path.abspath(config.get('global', 'sqlitebase')) MAX_NB_ARTICLES = int(config.get('global', 'max_nb_articles')) -- cgit