aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xutils.py5
1 files changed, 4 insertions, 1 deletions
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'))
bgstack15