Fix json pathing in jarvis.data.unicode
This commit is contained in:
parent
37335dfc86
commit
64e93fd40f
1 changed files with 8 additions and 2 deletions
|
@ -1,8 +1,14 @@
|
|||
import json
|
||||
from os import getcwd
|
||||
from os import sep as s
|
||||
|
||||
with open(f"json{s}emoji_list.json", encoding="UTF8") as f:
|
||||
json_path = getcwd()
|
||||
if "jarvis" not in json_path:
|
||||
json_path += s + "jarvis"
|
||||
json_path += f"{s}data{s}json{s}"
|
||||
|
||||
with open(json_path + "emoji_list.json", encoding="UTF8") as f:
|
||||
emoji_list = json.load(f)
|
||||
|
||||
with open(f"json{s}emoji_data.json", encoding="UTF8") as f:
|
||||
with open(json_path + "emoji_data.json", encoding="UTF8") as f:
|
||||
emoji_data = json.load(f)
|
||||
|
|
Loading…
Add table
Reference in a new issue