From a1704dc1bb06326bd5a319bff4fff9d41c8e3577 Mon Sep 17 00:00:00 2001 From: Westech Admin Date: Thu, 21 May 2026 05:59:26 +0000 Subject: [PATCH] fix(module): add nested westech_r2/__init__.py for Frappe module resolution Frappe get_module_path uses get_pymodule_path which expects westech_r2.westech_r2 to be importable. The nested __init__.py with __path__ redirection makes this work correctly. --- westech_r2/westech_r2/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 westech_r2/westech_r2/__init__.py diff --git a/westech_r2/westech_r2/__init__.py b/westech_r2/westech_r2/__init__.py new file mode 100644 index 0000000..3fd5ec3 --- /dev/null +++ b/westech_r2/westech_r2/__init__.py @@ -0,0 +1,5 @@ +import os + +# Make westech_r2.westech_r2 resolve to the parent westech_r2 package +# so Frappe's get_module_path("Westech R2") works correctly. +__path__ = [os.path.dirname(os.path.dirname(__file__))]