mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-12 06:20:09 +01:00
fix: windows path delimiter
This commit is contained in:
parent
1d8d89a61f
commit
d4c97333ba
1 changed files with 3 additions and 0 deletions
|
|
@ -2,6 +2,9 @@ use crate::suggestions::find_similar;
|
|||
|
||||
pub fn get_path_files() -> Vec<String> {
|
||||
let path = std::env::var("PATH").unwrap();
|
||||
#[cfg(target_os = "windows")]
|
||||
let path = path.split(';').collect::<Vec<&str>>();
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
let path = path.split(':').collect::<Vec<&str>>();
|
||||
let mut all_executable = vec![];
|
||||
for p in path {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue