We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
python_command
source_path
1 parent 4a00deb commit 0761802Copy full SHA for 0761802
src/tools/run-make-support/src/lib.rs
@@ -54,6 +54,15 @@ pub fn static_lib(name: &str) -> PathBuf {
54
tmp_dir().join(static_lib_name(name))
55
}
56
57
+pub fn python_command() -> Command {
58
+ let python_path = std::env::var("PYTHON").expect("PYTHON environment variable does not exist");
59
+ Command::new(python_path)
60
+}
61
+
62
+pub fn source_path() -> PathBuf {
63
+ std::env::var("S").expect("S variable does not exist").into()
64
65
66
/// Construct the static library name based on the platform.
67
pub fn static_lib_name(name: &str) -> String {
68
// See tools.mk (irrelevant lines omitted):
0 commit comments