maint(win): improve setup_env on Windows
This commit is contained in:
parent
174333ff93
commit
935a72e05b
@ -334,6 +334,10 @@ fn setup_env() {
|
||||
println!("{:#?}", error);
|
||||
colored::control::SHOULD_COLORIZE.set_override(false);
|
||||
});
|
||||
|
||||
if let Ok(current_exe) = env::current_exe() {
|
||||
env::set_current_dir(binary_path_str);
|
||||
}
|
||||
}
|
||||
|
||||
fn arg_value(args: &[String], arg: &str) -> Option<String> {
|
||||
|
Loading…
Reference in New Issue
Block a user