mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
Retry to fix win_lib_path again (#5076)
This commit is contained in:
@@ -12,7 +12,12 @@ fn main() {
|
||||
|
||||
if cfg!(windows) {
|
||||
if let Ok(real_path) = std::fs::read_to_string("Lib") {
|
||||
println!("cargo:rustc-env=win_lib_path={real_path:?}");
|
||||
let canonicalized_path = std::fs::canonicalize(real_path)
|
||||
.expect("failed to resolve RUSTPYTHONPATH during build time");
|
||||
println!(
|
||||
"cargo:rustc-env=win_lib_path={}",
|
||||
canonicalized_path.to_str().unwrap()
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user