()
| 58 | /// Collect standard library paths from build-time configuration |
| 59 | #[cfg(all(feature = "stdlib", not(feature = "freeze-stdlib")))] |
| 60 | fn collect_stdlib_paths() -> Vec<String> { |
| 61 | // BUILDTIME_RUSTPYTHONPATH should be set when distributing |
| 62 | if let Some(paths) = option_env!("BUILDTIME_RUSTPYTHONPATH") { |
| 63 | crate::settings::split_paths(paths) |
| 64 | .map(|path| path.into_os_string().into_string().unwrap()) |
| 65 | .collect() |
| 66 | } else { |
| 67 | #[cfg(feature = "rustpython-pylib")] |
| 68 | { |
| 69 | vec![rustpython_pylib::LIB_PATH.to_owned()] |
| 70 | } |
| 71 | #[cfg(not(feature = "rustpython-pylib"))] |
| 72 | { |
| 73 | vec![] |
| 74 | } |
| 75 | } |
| 76 | } |
no test coverage detected