This commit is contained in:
bashrc committed 2019-11-03 14:46:30 +00:00
1 parent 586905f8d2
commit 4e84f2c331
2 files changed
+6 -1

No files matched your search

+2 -1
View File
@@ -319,7 +319,8 @@ def addHtmlTags(baseDir: str,httpPrefix: str, \
#print('TAG: emoji located - '+wordStr)
wordStr2=wordStr.split(':')[1]
if not emojiDict:
#print('Loading emoji lookup')
# emoji.json is generated so that it can be customized and the changes
# will be retained even if default_emoji.json is subsequently updated
if not os.path.isfile(baseDir+'/emoji/emoji.json'):
copyfile(baseDir+'/emoji/default_emoji.json',baseDir+'/emoji/emoji.json')
emojiDictCtr=0
+4
View File
@@ -139,6 +139,8 @@ def htmlSearchEmoji(translate: {},baseDir: str,searchStr: str) -> str:
"""Search results for emoji
"""
# emoji.json is generated so that it can be customized and the changes
# will be retained even if default_emoji.json is subsequently updated
if not os.path.isfile(baseDir+'/emoji/emoji.json'):
copyfile(baseDir+'/emoji/default_emoji.json',baseDir+'/emoji/emoji.json')
@@ -2948,6 +2950,8 @@ def htmlSearchEmojiTextEntry(translate: {}, \
baseDir: str,path: str) -> str:
"""Search for an emoji by name
"""
# emoji.json is generated so that it can be customized and the changes
# will be retained even if default_emoji.json is subsequently updated
if not os.path.isfile(baseDir+'/emoji/emoji.json'):
copyfile(baseDir+'/emoji/default_emoji.json',baseDir+'/emoji/emoji.json')