abstreet/editor/build.rs

14 lines
331 B
Rust
Raw Normal View History

use std::env;
use std::path::Path;
2018-12-13 03:58:46 +03:00
use std::process::Command;
fn main() {
let output = Path::new(&env::var("OUT_DIR").unwrap()).join("init_colors.rs");
2018-12-13 03:58:46 +03:00
assert!(Command::new("/usr/bin/python2")
.args(&["extract_colorscheme.py", output.to_str().unwrap()])
2018-12-13 03:58:46 +03:00
.status()
.unwrap()
.success());
}