@@ -0,0 +1,35 @@
1+From 5dd2593369645b11a9dc03e1930617d2f5dbd039 Mon Sep 17 00:00:00 2001
2+From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= <joerg@thalheim.io>
3+Date: Wed, 11 Nov 2020 11:48:49 +0100
4+Subject: [PATCH] hardcode json file path
5+MIME-Version: 1.0
6+Content-Type: text/plain; charset=UTF-8
7+Content-Transfer-Encoding: 8bit
8+
9+Signed-off-by: Jörg Thalheim <joerg@thalheim.io>
10+---
11+ wee_slack.py | 8 +-------
12+ 1 file changed, 1 insertion(+), 7 deletions(-)
13+
14+diff --git a/wee_slack.py b/wee_slack.py
15+index a3d779c..5942289 100644
16+--- a/wee_slack.py
17++++ b/wee_slack.py
18+@@ -5136,13 +5136,7 @@ def create_slack_debug_buffer():
19+
20+ def load_emoji():
21+ try:
22+- weechat_dir = w.info_get('weechat_dir', '')
23+- weechat_sharedir = w.info_get('weechat_sharedir', '')
24+- local_weemoji, global_weemoji = ('{}/weemoji.json'.format(path)
25+- for path in (weechat_dir, weechat_sharedir))
26+- path = (global_weemoji if os.path.exists(global_weemoji) and
27+- not os.path.exists(local_weemoji) else local_weemoji)
28+- with open(path, 'r') as ef:
29++ with open('@out@/share/wee-slack/weemoji.json', 'r') as ef:
30+ emojis = json.loads(ef.read())
31+ if 'emoji' in emojis:
32+ print_error('The weemoji.json file is in an old format. Please update it.')
33+--
34+2.29.0
35+