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.
std::env::current_exe
1 parent 4a6547c commit 50da1ebCopy full SHA for 50da1eb
library/std/src/env.rs
@@ -616,6 +616,9 @@ pub fn temp_dir() -> PathBuf {
616
/// return the path of the symbolic link and other platforms will return the
617
/// path of the symbolic link’s target.
618
///
619
+/// If the executable is renamed while it is running, platforms may return the
620
+/// path at the time it was loaded instead of the new path.
621
+///
622
/// # Errors
623
624
/// Acquiring the path of the current executable is a platform-specific operation
0 commit comments