[Fix] systemd stuff fr this time
This commit is contained in:
parent
e18e8d1151
commit
41deb0d6de
2 changed files with 215 additions and 181 deletions
|
|
@ -149,9 +149,8 @@ pub fn get_children(path: &str) -> Vec<String> {
|
|||
}
|
||||
|
||||
pub fn get_directory() -> String {
|
||||
let exe = std::env::current_exe().unwrap_or_else(|_| PathBuf::from("."));
|
||||
exe.parent()
|
||||
.unwrap_or(Path::new("."))
|
||||
std::env::current_dir()
|
||||
.unwrap_or_else(|_| PathBuf::from("."))
|
||||
.to_string_lossy()
|
||||
.to_string()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue