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.
This commit is contained in:
Westech Admin
2026-05-21 06:00:37 +00:00
parent a1704dc1bb
commit 3c11969c89
2 changed files with 1 additions and 5 deletions
+1
View File
@@ -0,0 +1 @@
.
-5
View File
@@ -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__))]