Searched refs:root_env (Results 1 – 2 of 2) sorted by relevance
35 root_env: &'static str, field40 const DISCOVERY: DiscoveryDir = DiscoveryDir { root_env: "XDG_RUNTIME_DIR", subdir: "" };43 DiscoveryDir { root_env: "HOME", subdir: "Library/Caches/TemporaryItems" };45 const DISCOVERY: DiscoveryDir = DiscoveryDir { root_env: "LOCALAPPDATA", subdir: "Temp" };55 let mut path = match std::env::var(DISCOVERY.root_env) { in get_discovery_directory()58 warn!("No discovery env for {}, using /tmp", DISCOVERY.root_env); in get_discovery_directory()219 std::env::remove_var(DISCOVERY.root_env); in test_get_discovery_directory()229 std::env::set_var(DISCOVERY.root_env, "/netsim-test"); in test_get_discovery_directory()
39 const char *root_env; member63 const char *env_p = std::getenv(discovery.root_env); in GetDiscoveryDirectory()65 BtsLogWarn("No discovery env for %s, using tmp/", discovery.root_env); in GetDiscoveryDirectory()