We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d0139b commit c3a8d5aCopy full SHA for c3a8d5a
pylib/build.rs
@@ -12,7 +12,12 @@ fn main() {
12
13
if cfg!(windows) {
14
if let Ok(real_path) = std::fs::read_to_string("Lib") {
15
- println!("cargo:rustc-env=win_lib_path={real_path:?}");
+ let canonicalized_path = std::fs::canonicalize(real_path)
16
+ .expect("failed to resolve RUSTPYTHONPATH during build time");
17
+ println!(
18
+ "cargo:rustc-env=win_lib_path={}",
19
+ canonicalized_path.to_str().unwrap()
20
+ );
21
}
22
23
0 commit comments