diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/reload.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/reload.rs b/src/reload.rs index 0c6cbfc..1d1aa3e 100644 --- a/src/reload.rs +++ b/src/reload.rs @@ -62,11 +62,7 @@ pub unsafe fn continue_reload() { unsafe fn exec() { // path to this executable - let exe = env::current_exe() - .unwrap() - .to_string_lossy() - .replace(" (deleted)", ""); - let exe_c = CString::new(exe).unwrap(); + let exe_c = CString::new(exe_path()).unwrap(); // argv let args: Vec<CString> = env::args().map(|a| CString::new(a).unwrap()).collect(); |
