summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2018-02-10 15:44:50 +0100
committerMatthias Beyer <mail@beyermatthias.de>2018-02-11 17:56:58 +0100
commitba08cd263b71068b2f7aaf67c913b80c20481bc2 (patch)
tree7aa666878ce666dbace4397554d03db989e63f7c
parentc572bab3c0b3139f8c4fc7b77b282f80b42d9336 (diff)
Fix include_str!() in imag-init
Fixed by symlinking the imagrc.toml file to the crate directory of imag-init. Cherry-picked from: 8a3f2602e0b1c83c2040cd7172320829a4dd3d8c
l---------bin/core/imag-init/imagrc.toml1
-rw-r--r--bin/core/imag-init/src/main.rs3
2 files changed, 3 insertions, 1 deletions
diff --git a/bin/core/imag-init/imagrc.toml b/bin/core/imag-init/imagrc.toml
new file mode 120000
index 0000000..b71674c
--- /dev/null
+++ b/bin/core/imag-init/imagrc.toml
@@ -0,0 +1 @@
+../../../imagrc.toml \ No newline at end of file
diff --git a/bin/core/imag-init/src/main.rs b/bin/core/imag-init/src/main.rs
index 5c6b3e4..7918853 100644
--- a/bin/core/imag-init/src/main.rs
+++ b/bin/core/imag-init/src/main.rs
@@ -45,7 +45,8 @@ use std::path::PathBuf;
use std::path::Path;
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#"
# We ignore the imagrc.toml file by default
#