We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5a6284 commit 9c23551Copy full SHA for 9c23551
src/lib.rs
@@ -63,6 +63,13 @@ pub use settings::{opts_with_clap, RunMode};
63
pub fn run(init: impl FnOnce(&mut VirtualMachine) + 'static) -> ExitCode {
64
env_logger::init();
65
66
+ #[cfg(target_os = "wasi")]
67
+ {
68
+ if let Ok(pwd) = env::var("PWD") {
69
+ let _ = env::set_current_dir(pwd);
70
+ };
71
+ }
72
+
73
let (settings, run_mode) = opts_with_clap();
74
75
// Be quiet if "quiet" arg is set OR stdin is not connected to a terminal
0 commit comments