summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2016-07-14 23:34:46 +0800
committerAaron LI <aaronly.me@outlook.com>2016-07-14 23:34:46 +0800
commitf3ce2656ede0c79655c2aff34bdd2f443b742692 (patch)
treed9bb927f2e6c39a66cb4fe9a0fb7d2e4e6ea9806
parenta432fc8608d499ee589f0216b6bf7e2b7a63de18 (diff)
downloadcexcess-f3ce2656ede0c79655c2aff34bdd2f443b742692.tar.bz2
deproject_sbp.py: error if config file not exists
-rwxr-xr-xdeproject_sbp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/deproject_sbp.py b/deproject_sbp.py
index 9f00e74..432ede6 100755
--- a/deproject_sbp.py
+++ b/deproject_sbp.py
@@ -635,9 +635,9 @@ def main():
args = parser.parse_args()
config = ConfigObj(config_default.splitlines())
- config_user = ConfigObj(args.config)
+ config_user = ConfigObj(open(args.config))
config.merge(config_user)
- sbpfit_conf = ConfigObj(config["sbpfit_config"])
+ sbpfit_conf = ConfigObj(open(config["sbpfit_config"]))
try:
sbpfit_outfile = sbpfit_conf[sbpfit_conf["model"]]["outfile"]
except KeyError: