You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR introduces expression substitution on most user input. Expressions are marked with `%` characters and are a subset of the Python language. They are interpreted using the `asteval` package (see [doc](https://newville.github.io/asteval/)). See doc for the built-in symbols.
New commands:
- `forfile`
- `forlayer`
- `eval`
Misc other changes:
- The `read` command now will not fail if the provided file doesn't exist and the `--no-fail` parameter is used
- `grid` now sets page size
- `read` now sets/update the `vp_source`/`vp_sources` system props
- added `--no-fail` to read
- added explicit support for `vp_sources` update in `vp.Document`
- Fixed pycharm type error with CliRunner.execute()
- Added reference SVG tests
- Major doc update
- Minor update to docstrings
- pined shapely to 1.8.0 due to installer breaking with the current 1.8.1 (missing geos lib)
- Updated deps
Fixes#392Fixes#381
Example:
vpype read multilayer.svg begin forlayer write "output$lid$.svg" end
Requires expression substitution to be useful. Would fix #381.
The text was updated successfully, but these errors were encountered: