Skip to content

Commit af06805

Browse files
author
Phil Cummins
committed
removes dupe python path check
1 parent 0913c81 commit af06805

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/lib.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -200,12 +200,6 @@ pub async fn componentize(
200200
let embedded_python_standard_lib = embedded_python_standard_library();
201201
let embedded_helper_utils = embedded_helper_utils();
202202

203-
// Remove non-existent elements from `python_path` so we don't choke on them later
204-
let python_path = &python_path
205-
.iter()
206-
.filter_map(|&s| Path::new(s).exists().then_some(s))
207-
.collect::<Vec<_>>();
208-
209203
// Search `python_path` for native extension libraries and/or componentize-py.toml files. Packages containing
210204
// the latter may contain their own WIT files defining their own worlds (in addition to what the caller
211205
// specified as paramters), which we'll try to match up with `module_worlds` in the next step.
@@ -549,7 +543,6 @@ pub async fn componentize(
549543
let engine = Engine::new(&config)?;
550544

551545
let mut linker = Linker::new(&engine);
552-
553546
let added_to_linker = if let Some(add_to_linker) = add_to_linker {
554547
add_to_linker(&mut linker)?;
555548
true

0 commit comments

Comments
 (0)