Merge pull request #587 from matthiasbeyer/libimagrt/imagrc-location

Search for imagrc in RTP and not in RTP/store
This commit is contained in:
Matthias Beyer 2016-07-28 14:42:30 +02:00 committed by GitHub
commit 0e78081918

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 {