From 91a40435b43a109eb8b28b1e7a395d4ca90623f3 Mon Sep 17 00:00:00 2001 From: Saurabh Date: Wed, 12 Apr 2017 20:11:54 +0530 Subject: [PATCH] [fix] read apps dir if setting up global help else get installed apps from respective site --- frappe/utils/help.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frappe/utils/help.py b/frappe/utils/help.py index 820da0f5c3..1c90161e8f 100644 --- a/frappe/utils/help.py +++ b/frappe/utils/help.py @@ -102,7 +102,9 @@ class HelpDatabase(object): def sync_pages(self): self.db.sql('truncate help') doc_contents = '
    ' - for app in frappe.get_installed_apps(): + apps = os.listdir('../apps') if self.global_help_setup else frappe.get_installed_apps() + + for app in apps: docs_folder = '../apps/{app}/{app}/docs/user'.format(app=app) self.out_base_path = '../apps/{app}/{app}/docs'.format(app=app) if os.path.exists(docs_folder):