Simplify example runner

This commit is contained in:
Richard Ward
2025-07-17 11:15:00 +01:00
parent c102fd6517
commit 94b75db09a
2 changed files with 3 additions and 33 deletions

View File

@@ -29,7 +29,7 @@ from `parametric_cad/examples/`, for example:
export PYTHONPATH=.
python parametric_cad/examples/spur_gear_example.py
```
You can also run all examples at once using `run_examples.py` or the `run_examples.bat` script on Windows.
You can also run all examples at once using the cross-platform `run_examples.py` script.
Generated STL files are written to `output/<example>_output/`.

View File

@@ -1,38 +1,8 @@
@echo off
REM Run all Python examples using the cross-platform script
cd /d %~dp0
set PYTHONPATH=.
echo Running box_with_door.py...
python parametric_cad\examples\box_with_door.py
echo Running hollow_box.py...
python parametric_cad\examples\hollow_box.py
echo Running spur_gear_example.py...
python parametric_cad\examples\spur_gear_example.py
echo.
echo Checking box_with_door_output folder...
if exist output\box_with_door_output (
dir output\box_with_door_output
) else (
echo ERROR: box_with_door_output folder does not exist!
)
echo.
echo Checking hollow_box_output folder...
if exist output\hollow_box_output (
dir output\hollow_box_output
) else (
echo ERROR: hollow_box_output folder does not exist!
)
echo.
echo Checking spur_gear_example_output folder...
if exist output\spur_gear_example_output (
dir output\spur_gear_example_output
) else (
echo ERROR: spur_gear_example_output folder does not exist!
)
python run_examples.py
pause