mirror of
https://github.com/frappe/lms.git
synced 2026-04-19 22:52:29 +03:00
fix: lms dynamic path fetching
This commit is contained in:
@@ -27,8 +27,6 @@
|
||||
"@editorjs/table": "2.4.2",
|
||||
"@vueuse/core": "^14.1.0",
|
||||
"ace-builds": "1.36.2",
|
||||
"apexcharts": "4.3.0",
|
||||
"chart.js": "4.4.1",
|
||||
"codemirror": "6.0.1",
|
||||
"dayjs": "1.11.10",
|
||||
"dompurify": "3.2.6",
|
||||
|
||||
@@ -15,7 +15,10 @@ app_license = "AGPL"
|
||||
|
||||
|
||||
def get_lms_path():
|
||||
return (frappe.conf.get("lms_path") if frappe.conf else "lms").strip("/")
|
||||
path = "lms"
|
||||
if frappe.conf and frappe.conf.get("lms_path"):
|
||||
path = frappe.conf.get("lms_path")
|
||||
return path.strip("/")
|
||||
|
||||
|
||||
# Includes in <head>
|
||||
|
||||
Reference in New Issue
Block a user