MCPcopy Create free account
hub / github.com/Henktorius/float / config_path

Function config_path

src/config.rs:150–167  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

148}
149
150fn config_path() -> std::path::PathBuf {
151 if let Some(dir) = std::env::var_os("XDG_CONFIG_HOME") {
152 return std::path::PathBuf::from(dir)
153 .join("float")
154 .join("config.toml");
155 }
156
157 if let Ok(home) = std::env::var("HOME") {
158 return std::path::PathBuf::from(home)
159 .join(".config")
160 .join("float")
161 .join("config.toml");
162 }
163
164 std::path::PathBuf::from(".config")
165 .join("float")
166 .join("config.toml")
167}

Callers 1

loadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected