##// END OF EJS Templates
rust: move import of PathBuf...
Gregory Szorc -
r35621:11c86ab6 default
parent child Browse files
Show More
@@ -8,9 +8,6 b''
8 use std::collections::HashMap;
8 use std::collections::HashMap;
9 use std::env;
9 use std::env;
10 use std::path::Path;
10 use std::path::Path;
11 #[cfg(target_os = "windows")]
12 use std::path::PathBuf;
13
14 use std::process::Command;
11 use std::process::Command;
15
12
16 struct PythonConfig {
13 struct PythonConfig {
@@ -77,6 +74,8 b' fn have_shared(config: &PythonConfig) ->'
77
74
78 #[cfg(target_os = "windows")]
75 #[cfg(target_os = "windows")]
79 fn have_shared(config: &PythonConfig) -> bool {
76 fn have_shared(config: &PythonConfig) -> bool {
77 use std::path::PathBuf;
78
80 // python27.dll should exist next to python2.7.exe.
79 // python27.dll should exist next to python2.7.exe.
81 let mut dll = PathBuf::from(&config.python);
80 let mut dll = PathBuf::from(&config.python);
82 dll.pop();
81 dll.pop();
General Comments 0
You need to be logged in to leave comments. Login now