diff libervia/server/server.py @ 1514:16228994ca3b

server: fix hot reloading of modules in dev mode
author Goffi <goffi@goffi.org>
date Mon, 22 May 2023 11:57:49 +0200
parents 65e063657597
children a3ca1bab6eb1
line wrap: on
line diff
--- a/libervia/server/server.py	Mon May 22 11:57:49 2023 +0200
+++ b/libervia/server/server.py	Mon May 22 11:57:49 2023 +0200
@@ -531,7 +531,9 @@
                     self.files_watcher.watch_dir(
                         site_path, auto_add=True, recursive=True,
                         callback=LiberviaPage.on_file_change, site_root=res,
-                        site_path=site_path)
+                        # FIXME: site_path should always be a Path, check code above and
+                        # in template module
+                        site_path=Path(site_path))
 
                 LiberviaPage.import_pages(self, res)
                 # FIXME: default pages are accessible if not overriden by external website