From 3c11969c89ec31dd48afcf17873718c0a4318276 Mon Sep 17 00:00:00 2001 From: Westech Admin Date: Thu, 21 May 2026 06:00:37 +0000 Subject: [PATCH] fix(module): use symlink for westech_r2/westech_r2 to resolve Frappe module path Frappe get_module_path uses get_pymodule_path which constructs westech_r2.westech_r2 for module resolution. The symlink makes both "westech_r2" and "westech_r2.westech_r2" resolve to the same directory, fixing the 3-level deep path bug. --- westech_r2/westech_r2 | 1 + westech_r2/westech_r2/__init__.py | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) create mode 120000 westech_r2/westech_r2 delete mode 100644 westech_r2/westech_r2/__init__.py diff --git a/westech_r2/westech_r2 b/westech_r2/westech_r2 new file mode 120000 index 0000000..945c9b4 --- /dev/null +++ b/westech_r2/westech_r2 @@ -0,0 +1 @@ +. \ No newline at end of file diff --git a/westech_r2/westech_r2/__init__.py b/westech_r2/westech_r2/__init__.py deleted file mode 100644 index 3fd5ec3..0000000 --- a/westech_r2/westech_r2/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -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__))]