mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
Merge pull request #834 from sbellem/cargo-manifest-dir
fix: use runtime CARGO_MANIFEST_DIR
This commit is contained in:
commit
e548696757
2 changed files with 2 additions and 2 deletions
|
|
@ -144,5 +144,5 @@ fn main() {
|
|||
}
|
||||
|
||||
fn project_root() -> PathBuf {
|
||||
Path::new(&env!("CARGO_MANIFEST_DIR")).ancestors().nth(1).unwrap().to_path_buf()
|
||||
Path::new(&std::env::var("CARGO_MANIFEST_DIR").expect("CARGO_MANIFEST_DIR not set — this binary must be run via cargo")).ancestors().nth(1).unwrap().to_path_buf()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1524,7 +1524,7 @@ pub fn cargo(configs: &[String]) -> Command {
|
|||
}
|
||||
|
||||
pub fn project_root() -> PathBuf {
|
||||
Path::new(&env!("CARGO_MANIFEST_DIR")).ancestors().nth(1).unwrap().to_path_buf()
|
||||
Path::new(&std::env::var("CARGO_MANIFEST_DIR").expect("CARGO_MANIFEST_DIR not set — this binary must be run via cargo")).ancestors().nth(1).unwrap().to_path_buf()
|
||||
}
|
||||
|
||||
use std::fs::File;
|
||||
|
|
|
|||
Loading…
Reference in a new issue