From d65107eee90c62b713d71164db9b227f7970bb36 Mon Sep 17 00:00:00 2001 From: Jochen Mattes Date: Thu, 26 Mar 2026 13:21:28 +0100 Subject: [PATCH] feat: add __main__.py for cross-platform CLI invocation Adds __main__.py to the werk24 package so users can run 'python -m werk24' as a reliable alternative to the 'werk24' console_scripts entry point. On Windows, pip installs CLI scripts to a Scripts/ directory that is often not on the system PATH, causing 'werk24 init' to fail with CommandNotFoundException. This module provides a PATH-independent fallback via 'python -m werk24 init'. --- werk24/__main__.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 werk24/__main__.py diff --git a/werk24/__main__.py b/werk24/__main__.py new file mode 100644 index 0000000..397b641 --- /dev/null +++ b/werk24/__main__.py @@ -0,0 +1,9 @@ +"""Allow running the werk24 CLI via `python -m werk24`. + +This ensures the CLI works on all platforms regardless of +whether the Scripts/bin directory is on the system PATH. +""" + +from werk24.cli.werk24 import app + +app()