Skip to content

Commit d19ef62

Browse files
update wildcard script
1 parent efd62e1 commit d19ef62

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

code/tests/tools/wildcard.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import glob
22

3-
# Collect all .c and .cpp files in the cases directory (including subdirectories)
4-
source_files = glob.glob("cases/*.c", recursive=True) + glob.glob("cases/*.cpp", recursive=True)
3+
# Collect all .c and .cpp files directly in the cases directory (not subdirectories)
4+
source_files = glob.glob("cases/*.c") + glob.glob("cases/*.cpp")
55

66
# Print each file name with "cases/" prefix
77
for file in source_files:
8-
print("cases/" + (file[len("cases/"):] if file.startswith("cases/") else file))
8+
print(file)

0 commit comments

Comments
 (0)