delete uncorrect
This commit is contained in:
16
src/commands/mod.rs
Normal file
16
src/commands/mod.rs
Normal file
@ -0,0 +1,16 @@
|
||||
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")
|
||||
}
|
||||
Reference in New Issue
Block a user