Skip to content

Commit ca0c64f

Browse files
Fix Python syntax check on Windows - use glob instead of shell wildcard
Windows cmd does not expand glob patterns for py_compile. Use python -c with glob.glob(recursive=True) to find all .py files across core/, ui/, and SexyUIExtensions/ directories.
1 parent fde3e61 commit ca0c64f

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,9 @@ jobs:
2929
3030
- name: Check Python syntax
3131
run: |
32-
python -m py_compile core/*.py
33-
python -m py_compile core/generators/*.py
34-
python -m py_compile core/generators/cpp/*.py
35-
python -m py_compile core/generators/csharp/*.py
36-
python -m py_compile ui/*.py
32+
python -c "import glob, py_compile, os; [py_compile.compile(f, doraise=True) for f in glob.glob('core/**/*.py', recursive=True)]"
33+
python -c "import glob, py_compile, os; [py_compile.compile(f, doraise=True) for f in glob.glob('ui/**/*.py', recursive=True)]"
34+
python -c "import glob, py_compile, os; [py_compile.compile(f, doraise=True) for f in glob.glob('SexyUIExtensions/**/*.py', recursive=True)]"
3735
3836
build:
3937
name: Windows Build (Nuitka)

0 commit comments

Comments
 (0)