make Python frontend default and PHP optional

This commit is contained in:
Sarah Hoffmann
2024-02-15 19:44:04 +01:00
parent 19360a9552
commit 05fad607ff
7 changed files with 53 additions and 25 deletions

View File

@@ -213,6 +213,10 @@ def _quote_php_variable(var_type: Type[Any], config: Configuration,
def setup_website(basedir: Path, config: Configuration, conn: Connection) -> None:
""" Create the website script stubs.
"""
if config.lib_dir.php is None:
LOG.info("Python frontend does not require website setup. Skipping.")
return
if not basedir.exists():
LOG.info('Creating website directory.')
basedir.mkdir()