Skip to content

Commit 42222e6

Browse files
committed
tools: avoid os.glob, in favour of os.walk_ext (which works consistently even on windows)
1 parent 02a7355 commit 42222e6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎cmd/tools/vshould-compile-all.v‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ fn main() {
8181
mut glsl_folders := map[string]bool{}
8282
mut pfi := 0
8383
for pf, _ in project_folders {
84-
glsl_files := os.glob(os.join_path(pf, '*.glsl'))!
84+
glsl_files := os.walk_ext(pf, '.glsl')
8585
if glsl_files.len > 0 {
8686
if pf !in glsl_folders {
8787
log.debug('>>> found .glsl files in ${pf} ... running `v shader ${pf}` ...')

0 commit comments

Comments
 (0)