artifactize_core/platform/executable.rs
1//! Native executable identity for launching another copy of this process.
2
3use std::{io, path::PathBuf};
4
5/// The running executable's native path, with filesystem aliases resolved for relaunch.
6pub fn current_executable() -> io::Result<PathBuf> {
7 super::canonicalize(&std::env::current_exe()?)
8}