You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
393 B
Rust
10 lines
393 B
Rust
use std::{env, path::PathBuf};
|
|
|
|
const DEFAULT_CONFIG_DIR: &str = "/etc";
|
|
|
|
lazy_static::lazy_static! {
|
|
pub static ref CFG_PATH: PathBuf = env::var("TRM_CFG_PATH").map(PathBuf::from).unwrap_or_else(|_| PathBuf::from(DEFAULT_CONFIG_DIR).join("tourmaline"));
|
|
pub static ref SCRIPT_PATH: PathBuf = CFG_PATH.join("scripts");
|
|
pub static ref HOOK_PATH: PathBuf = CFG_PATH.join("hooks");
|
|
}
|