Restrict Nu with a cleaned environment. (#1222)

This commit is contained in:
Andrés N. Robalino
2020-01-13 23:17:20 -05:00
committed by GitHub
parent 98028433ad
commit 78a644da2b
3 changed files with 45 additions and 85 deletions

View File

@ -226,10 +226,12 @@ pub fn executable_path() -> PathBuf {
}
pub fn binaries() -> PathBuf {
let mut path = PathBuf::new();
path.push("target");
path.push("debug");
path
PathBuf::from(env!("CARGO_MANIFEST_DIR"))
.parent()
.expect("Couldn't find the debug binaries directory")
.parent()
.expect("Couldn't find the debug binaries directory")
.join("target/debug")
}
pub fn in_directory(str: impl AsRef<Path>) -> String {