Search for imagrc in RTP and not in RTP/store
This commit is contained in:
parent
76fba46224
commit
6571429123
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