Merge pull request #587 from matthiasbeyer/libimagrt/imagrc-location
Search for imagrc in RTP and not in RTP/store
This commit is contained in:
commit
0e78081918
1 changed files with 1 additions and 5 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue