merge-requests/21/head
Bob Mottram 2021-02-27 14:39:35 +00:00
parent dacdeca65a
commit dd22c42600
1 changed files with 9 additions and 6 deletions

View File

@ -61,12 +61,15 @@ def _copyThemeHelpFiles(baseDir: str, themeName: str,
themeDir = baseDir + '/defaultwelcome'
for subdir, dirs, files in os.walk(themeDir):
for helpMarkdownFile in files:
if helpMarkdownFile.endswith('_' + systemLanguage + '.md'):
destHelpMarkdownFile = \
helpMarkdownFile.replace('_' + systemLanguage + '.md',
'.md')
copyfile(themeDir + '/' + helpMarkdownFile,
baseDir + '/accounts/' + destHelpMarkdownFile)
if not helpMarkdownFile.endswith('_' + systemLanguage + '.md'):
continue
destHelpMarkdownFile = \
helpMarkdownFile.replace('_' + systemLanguage + '.md', '.md')
print('Copying theme help: ' + \
themeDir + '/' + helpMarkdownFile + ' -> ' + \
baseDir + '/accounts/' + destHelpMarkdownFile)
copyfile(themeDir + '/' + helpMarkdownFile,
baseDir + '/accounts/' + destHelpMarkdownFile)
break