use once_cell::sync::Lazy; pub static USER_CONFIG_DIR: Lazy = 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 = 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(), } });