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:
Symlink
+1
@@ -0,0 +1 @@
|
|||||||
|
.
|
||||||
@@ -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__))]
|
|
||||||
Reference in New Issue
Block a user