From 493fc7b8644e9cf00caab70996a498b611df0cb8 Mon Sep 17 00:00:00 2001 From: crypto-universe Date: Thu, 1 Sep 2016 20:25:39 +0200 Subject: [PATCH] Add new command for Windows configuration --- tests/unit/style/properties/scaffolding.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/unit/style/properties/scaffolding.rs b/tests/unit/style/properties/scaffolding.rs index f4fb064301a..b2225225201 100644 --- a/tests/unit/style/properties/scaffolding.rs +++ b/tests/unit/style/properties/scaffolding.rs @@ -32,6 +32,10 @@ fn properties_list_json() { #[cfg(windows)] 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() { return "python27.exe".to_owned(); }