Ver a proveniência

Merge pull request #3081 from saurabh6790/setup_help_fix

[fix] read apps dir if setting up global help else get installed apps from respective site
version-14
Saurabh há 8 anos
committed by GitHub
ascendente
cometimento
0f3bd863a3
1 ficheiros alterados com 3 adições e 1 eliminações
  1. +3
    -1
      frappe/utils/help.py

+ 3
- 1
frappe/utils/help.py Ver ficheiro

@@ -102,7 +102,9 @@ class HelpDatabase(object):
def sync_pages(self):
self.db.sql('truncate help')
doc_contents = '<ol>'
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):


Carregando…
Cancelar
Guardar