mirror of
https://github.com/nushell/nushell.git
synced 2025-07-01 07:00:37 +02:00
Restrict Nu with a cleaned environment. (#1222)
This commit is contained in:
committed by
GitHub
parent
98028433ad
commit
78a644da2b
@ -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 {
|
||||
|
Reference in New Issue
Block a user