()
| 344 | } |
| 345 | |
| 346 | fn read_cache_path() -> String { |
| 347 | let mut cache_path: String = path_to_string(&default_cache_folder()); |
| 348 | CACHE_PATH.with(|value| { |
| 349 | let path: String = (&*value.borrow().to_string()).into(); |
| 350 | if !path.is_empty() { |
| 351 | cache_path = path; |
| 352 | } |
| 353 | }); |
| 354 | cache_path |
| 355 | } |
| 356 | |
| 357 | #[cfg(not(windows))] |
| 358 | fn get_win_os_architecture() -> String { |