Skip to content

Commit 44fb834

Browse files
committed
platform specific import
1 parent b4271d1 commit 44fb834

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

crates/r2x-python/src/utils.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
//! between Windows and Unix-like systems in Python virtual environments.
55
66
use super::errors::BridgeError;
7-
use std::fs;
87
use std::path::PathBuf;
98

9+
#[cfg(not(windows))]
10+
use std::fs;
11+
1012
/// The name of the library directory in a Python venv (e.g., "Lib" on Windows, "lib" on Unix)
1113
#[cfg(windows)]
1214
const PYTHON_LIB_DIR: &str = "Lib";

0 commit comments

Comments
 (0)