mirror of
https://github.com/servo/servo.git
synced 2025-08-13 01:15:34 +01:00
Use env::var_os to read paths from the environment
This avoids unnecessary UTF-8 validation on OsStrings that we just pass back to the OS.
This commit is contained in:
parent
fe16c1d5c3
commit
c169f52b25
7 changed files with 19 additions and 18 deletions
|
@ -69,7 +69,7 @@ fn generate_properties() {
|
|||
}
|
||||
}
|
||||
|
||||
let script = Path::new(&env::var("CARGO_MANIFEST_DIR").unwrap())
|
||||
let script = Path::new(&env::var_os("CARGO_MANIFEST_DIR").unwrap())
|
||||
.join("properties").join("build.py");
|
||||
let product = if cfg!(feature = "gecko") { "gecko" } else { "servo" };
|
||||
let status = Command::new(&*PYTHON)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue