From 2bf2ce24e1ea0fc2ef72bbf9e2218fe67f9a9003 Mon Sep 17 00:00:00 2001 From: Kris Vandecruys Date: Thu, 19 Mar 2026 11:01:27 +0100 Subject: [PATCH] feat: support python -m livereload invocation Adds __main__.py so the server can be started with: python -m livereload [directory] This mirrors the familiar pattern of python -m http.server and delegates directly to the existing cli.main() entry point, keeping the behaviour identical to the livereload console script. --- livereload/__main__.py | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 livereload/__main__.py diff --git a/livereload/__main__.py b/livereload/__main__.py new file mode 100644 index 0000000..4d42a00 --- /dev/null +++ b/livereload/__main__.py @@ -0,0 +1,3 @@ +from livereload.cli import main + +main()