From 6275068d7dd008af75e731a22090b765a4b1b6e1 Mon Sep 17 00:00:00 2001 From: Mohammadreza Amani Date: Thu, 14 Nov 2024 16:05:18 +0330 Subject: [PATCH] fix(hot-reload): fix watch dog error. --- inui/hotreload.py | 2 +- pyproject.toml | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/inui/hotreload.py b/inui/hotreload.py index 802aa54..ca2ebf5 100644 --- a/inui/hotreload.py +++ b/inui/hotreload.py @@ -151,7 +151,7 @@ def run_async(): async def start_websocket_server(): start_server = await websockets.serve( - websocket_handler, args.host, args.port + 1 + lambda x: websocket_handler(x, file_to_watch), args.host, args.port + 1 ) await start_server.wait_closed() diff --git a/pyproject.toml b/pyproject.toml index 84f85d6..7a4a7fd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta" [project] name = "inui" -version = "0.9.7.1" +version = "0.9.7.2" description = "Powerful and Highly Customizable Python Library for UI" readme = "README.md" authors = [{ name = "Mohammadreza Amani", email = "more.amani@yahoo.com" }] diff --git a/setup.py b/setup.py index 859692f..bb24ea1 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ long_description = "\n" + fh.read() -VERSION = "0.9.7.1" +VERSION = "0.9.7.2" PACKAGE_NAME = "inui" DESCRIPTION = ""