Skip to content

Commit

Permalink
use cargo manifest path to find build.py script
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrouget committed Sep 5, 2017
1 parent f7d238d commit cd13888
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/style/build.rs
Expand Up @@ -69,7 +69,8 @@ fn generate_properties() {
}
}

let script = Path::new(file!()).parent().unwrap().join("properties").join("build.py");
let script = Path::new(&env::var("CARGO_MANIFEST_DIR").unwrap())
.join("properties").join("build.py");
let product = if cfg!(feature = "gecko") { "gecko" } else { "servo" };
let status = Command::new(&*PYTHON)
.arg(&script)
Expand Down

0 comments on commit cd13888

Please sign in to comment.