aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/applications/networking/irc/weechat/scripts/wee-slack/hardcode-json-file-path.patch
blob: 7413a9229ce658165bf57a18689b227e44d712df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -4560,8 +4560,7 @@
 
 def load_emoji():
     try:
-        DIR = w.info_get('weechat_dir', '')
-        with open('{}/weemoji.json'.format(DIR), 'r') as ef:
+        with open('@out@/share/wee-slack/weemoji.json', 'r') as ef:
             emojis = json.loads(ef.read())
             if 'emoji' in emojis:
                 print_error('The weemoji.json file is in an old format. Please update it.')