blob: 5d53cc589a13fabd2bf43b373af1fa26352d4fc6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
use once_cell::sync::Lazy;
pub static USER_CONFIG_DIR: Lazy<String> = Lazy::new(|| {
match dirs::config_local_dir() {
Some(mut d) => {
d.push("neosheet");
d.as_path().to_str().unwrap_or("").to_string()
}
None => String::new(),
}
});
pub static USER_RC_PATH: Lazy<String> = Lazy::new(|| {
match dirs::config_local_dir() {
Some(mut d) => {
d.push("neosheet");
d.push("init.lua");
d.as_path().to_str().unwrap_or("").to_string()
}
None => String::new(),
}
});
|