From 6571429123352cfd88bc94cb15aed49fc1ca02bf Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Wed, 27 Jul 2016 19:15:50 +0200 Subject: [PATCH] Search for imagrc in RTP and not in RTP/store --- libimagrt/src/runtime.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/libimagrt/src/runtime.rs b/libimagrt/src/runtime.rs index 63678672..237b3fe7 100644 --- a/libimagrt/src/runtime.rs +++ b/libimagrt/src/runtime.rs @@ -73,11 +73,7 @@ impl<'a> Runtime<'a> { }, PathBuf::from); let configpath = matches.value_of("config") - .map_or_else(|| { - let mut spath = rtp.clone(); - spath.push("store"); - spath - }, PathBuf::from); + .map_or_else(|| rtp.clone(), PathBuf::from); let cfg = match Configuration::new(&configpath) { Err(e) => if e.err_type() != ConfigErrorKind::NoConfigFileFound {