abstreet/editor/build.rs

15 lines
407 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;
2019-01-24 03:08:36 +03:00
// TODO See https://github.com/dtolnay/inventory for an alternate approach.
2018-12-13 03:58:46 +03:00
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());
}