Skip to main content

RBNX_INVOCATION_CWD

Constant RBNX_INVOCATION_CWD 

Source
pub(crate) const RBNX_INVOCATION_CWD: &str = "RBNX_INVOCATION_CWD";
Expand description

Directory against which relative -p is resolved: the pwd of the command invocation. When cargo run runs from robonix/rust, the process cwd is not the user’s shell cwd — wrappers should export RBNX_INVOCATION_CWD="$(pwd)" before cd+cargo run. If unset, std::env::current_dir() is used.