diff options
author | cedricbonhomme <devnull@localhost> | 2011-07-07 18:50:05 +0200 |
---|---|---|
committer | cedricbonhomme <devnull@localhost> | 2011-07-07 18:50:05 +0200 |
commit | b0905c4c5c5c1f4fa6b78c8ed823958bf2c83d9e (patch) | |
tree | 2ae27119be4a9ebf609886a636c7968627e8fe60 | |
parent | Minor improvements: the database was readed two time at boot. (diff) | |
download | newspipe-b0905c4c5c5c1f4fa6b78c8ed823958bf2c83d9e.tar.gz newspipe-b0905c4c5c5c1f4fa6b78c8ed823958bf2c83d9e.tar.bz2 newspipe-b0905c4c5c5c1f4fa6b78c8ed823958bf2c83d9e.zip |
Minor improvements: if pyAggr3g470r.cfg is not present, try to read pyAggr3g470r.cfg-sample.
-rwxr-xr-x | utils.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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')) |