Use `runtime` dir when defaulting to executable location

imgbot
Wojciech Kępka 4 years ago committed by Ivan Tham
parent 4a40e935de
commit 4b6aff8c66

@ -68,7 +68,7 @@ fn runtime_dir() -> std::path::PathBuf {
// fallback to location of the executable being run // fallback to location of the executable being run
std::env::current_exe() std::env::current_exe()
.ok() .ok()
.and_then(|path| path.parent().map(|path| path.to_path_buf())) .and_then(|path| path.parent().map(|path| path.to_path_buf().join(RT_DIR)))
.unwrap() .unwrap()
} }

Loading…
Cancel
Save