]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/tools/refresh.py
look for postcode areas when finding something in the postcode table
[nominatim.git] / nominatim / tools / refresh.py
index 43e5b1eb387a4641ef49274bc63eaa485c171eda..008fc7143313469a7962934df9ded6c8415b3e7b 100644 (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()