fix(python): handle recursive python imports with loop

This commit is contained in:
Ruben Fiszel
2024-02-20 19:42:05 +01:00
parent 7d4162d0d8
commit bf3e417acc
4 changed files with 41 additions and 4 deletions

View File

@@ -631,11 +631,14 @@ async fn handle_python_deps(
let requirements = match requirements_o {
Some(r) => r,
None => {
let mut already_visited = vec![];
let requirements = windmill_parser_py_imports::parse_python_imports(
inner_content,
w_id,
script_path,
db,
&mut already_visited,
)
.await?
.join("\n");