diff --git a/backend/windmill-worker/src/worker.rs b/backend/windmill-worker/src/worker.rs index 601a962dc1..96e46a4760 100644 --- a/backend/windmill-worker/src/worker.rs +++ b/backend/windmill-worker/src/worker.rs @@ -1779,7 +1779,7 @@ async fn handle_python_job( let script_path_splitted = &job.script_path().split("/"); let dirs = script_path_splitted.clone().take(script_path_splitted.clone().count() - 1).join("/").replace("-", "_"); - let last = script_path_splitted.clone().last().unwrap().replace("-", "_").replace(' ', '_').to_lowercase(); + let last = script_path_splitted.clone().last().unwrap().replace("-", "_").replace(" ", "_").to_lowercase(); let module_dir = format!("{}/{}", job_dir, dirs ); tokio::fs::create_dir_all(format!("{module_dir}/")).await?; let _ = write_file(&module_dir, &format!("{last}.py"), inner_content).await?;