Skip to content

Commit

Permalink
Automatic: do not change work dir
Browse files Browse the repository at this point in the history
  • Loading branch information
mwalkiewicz committed Aug 6, 2024
1 parent f2fa46b commit aa6ff45
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/process/automatic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,9 @@ fn build_cmd(model: Option<PathBuf>, config: &Config) -> anyhow::Result<Command>
log::warn!("No model arg");
}

let work_dir = script.parent().unwrap();
cmd.stdout(Stdio::piped())
.stderr(Stdio::piped())
.stdin(Stdio::null())
.current_dir(work_dir);
.stdin(Stdio::null());
Ok(cmd)
}

Expand Down

0 comments on commit aa6ff45

Please sign in to comment.