Hi all,
I've implemented an initial support for configuring SWI-Prolog flags in PySwip, using either environment variables or a TOML configuration file.
Key features:
- Flags can be set via environment varibles using the pattern `SWIPL_<FLAGNAME>`, for example: `export SWIPL_STACK_LIMIT="512M"`
- Alternatively, you can use a TOML file (`swipl.toml`) with a `[swipl]` section to specify flags.
- Only flags supported by the SWI-Prolog cli are accepted and validated according to the official documentation.
- You can specify a custom configuration file by setting the `SWIPL_CONF_FILE` environment variable.
- Invalid or unsupported flags are ignored with a warning.
Let me know if you have any feedback or questions.
Federico Forzano.