Use runtime dir when defaulting to executable location

This commit is contained in:
Wojciech Kępka 2021-06-12 10:20:03 +02:00 committed by Ivan Tham
parent 4a40e935de
commit 4b6aff8c66

View File

@ -68,7 +68,7 @@ fn runtime_dir() -> std::path::PathBuf {
// fallback to location of the executable being run
std::env::current_exe()
.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()
}