mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
os: make exists_in_system_path function public
This commit is contained in:
parent
0845b2cfbe
commit
e245e22875
@ -947,7 +947,7 @@ pub fn find_abs_path_of_executable(exepath string) ?string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// exists_in_system_path returns true if prog exists in the system's path
|
// exists_in_system_path returns true if prog exists in the system's path
|
||||||
fn exists_in_system_path(prog string) bool {
|
pub fn exists_in_system_path(prog string) bool {
|
||||||
os.find_abs_path_of_executable(prog) or {
|
os.find_abs_path_of_executable(prog) or {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user