17 lines
350 B
Rust
17 lines
350 B
Rust
|
|
pub mod install;
|
||
|
|
pub mod install_all;
|
||
|
|
pub mod delete;
|
||
|
|
|
||
|
|
use std::path::PathBuf;
|
||
|
|
|
||
|
|
|
||
|
|
pub fn get_var_path() -> PathBuf {
|
||
|
|
let exe_path = std::env::current_exe().expect("Failed to get executable path");
|
||
|
|
exe_path
|
||
|
|
.parent()
|
||
|
|
.unwrap()
|
||
|
|
.join("../var")
|
||
|
|
.canonicalize()
|
||
|
|
.expect("Failed to canonicalize var path")
|
||
|
|
}
|