Skip to main content

current_exe

Function current_exe 

Source
pub fn current_exe() -> Result<PathBuf>
Expand description

Returns the current executable path without a trailing deletion marker.

The literal (deleted) suffix is removed when the path is valid UTF-8. Other paths remain unchanged, and executable lookup errors are propagated.