Fix include_str!() in imag-init

Fixed by symlinking the imagrc.toml file to the crate directory of
imag-init.
This commit is contained in:
Matthias Beyer 2018-02-10 15:44:50 +01:00
parent fa8af0c053
commit 8a3f2602e0
2 changed files with 3 additions and 1 deletions

View file

@ -0,0 +1 @@
../../../imagrc.toml

View file

@ -45,7 +45,8 @@ use std::path::PathBuf;
use std::path::Path; use std::path::Path;
use std::process::Command; use std::process::Command;
const CONFIGURATION_STR : &'static str = include_str!("../../../../imagrc.toml"); const CONFIGURATION_STR : &'static str = include_str!("../imagrc.toml");
const GITIGNORE_STR : &'static str = r#" const GITIGNORE_STR : &'static str = r#"
# We ignore the imagrc.toml file by default # We ignore the imagrc.toml file by default
# #