diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2016-05-28 23:03:04 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2016-05-28 23:03:06 +0200 |
commit | d50f8b3d0d94df174229c7c0e00753d57fcb9707 (patch) | |
tree | c71243c70bd19d3dc3811db2ba8a4483d1ccb950 /libimagrt | |
parent | ac89856e1c6767171ed373f76fde1ac77cd104b0 (diff) |
Fix: Test the RTP itself as well
This fixes the problem that the user sometimes passes the configuration
via the commandline. In this case, the "rtp" variable itself is the
configuration file path. With this fix applied, we check this value
before generating the variants and trying them.
Diffstat (limited to 'libimagrt')
-rw-r--r-- | libimagrt/src/configuration.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libimagrt/src/configuration.rs b/libimagrt/src/configuration.rs index c3cb9735..a2ee1fed 100644 --- a/libimagrt/src/configuration.rs +++ b/libimagrt/src/configuration.rs @@ -143,6 +143,7 @@ fn fetch_config(rtp: &PathBuf) -> Result<Value> { }; vec![ + vec![rtp.clone()], gen_vars(rtp.clone(), variants.clone(), &modifier), env::var("HOME").map(|home| gen_vars(PathBuf::from(home), variants.clone(), &modifier)) |