Search for imagrc in RTP and not in RTP/store

This commit is contained in:
Matthias Beyer 2016-07-27 19:15:50 +02:00
parent 76fba46224
commit 6571429123

View file

@ -73,11 +73,7 @@ impl<'a> Runtime<'a> {
}, PathBuf::from); }, PathBuf::from);
let configpath = matches.value_of("config") let configpath = matches.value_of("config")
.map_or_else(|| { .map_or_else(|| rtp.clone(), PathBuf::from);
let mut spath = rtp.clone();
spath.push("store");
spath
}, PathBuf::from);
let cfg = match Configuration::new(&configpath) { let cfg = match Configuration::new(&configpath) {
Err(e) => if e.err_type() != ConfigErrorKind::NoConfigFileFound { Err(e) => if e.err_type() != ConfigErrorKind::NoConfigFileFound {