Add new command for Windows configuration

This commit is contained in:
crypto-universe 2016-09-01 20:25:39 +02:00
parent 6c68680581
commit 493fc7b864

View file

@ -32,6 +32,10 @@ fn properties_list_json() {
#[cfg(windows)] #[cfg(windows)]
fn find_python() -> String { fn find_python() -> String {
if Command::new("python2.7.exe").arg("--version").output().is_ok() {
return "python2.7.exe".to_owned();
}
if Command::new("python27.exe").arg("--version").output().is_ok() { if Command::new("python27.exe").arg("--version").output().is_ok() {
return "python27.exe".to_owned(); return "python27.exe".to_owned();
} }