From e229c849dd2ba9b605f920846e883e841932c78f Mon Sep 17 00:00:00 2001 From: Gary Steers Date: Thu, 5 Mar 2020 08:18:04 +0000 Subject: [PATCH] Updated path for icons.json --- teamswebhook.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/teamswebhook.py b/teamswebhook.py index 5880bb7..c6a7b42 100644 --- a/teamswebhook.py +++ b/teamswebhook.py @@ -1,10 +1,10 @@ #!/usr/bin/env python -import json, httplib, urllib, ssl, copy +import json, httplib, urllib, ssl, copy, os # import stock icons try: - stock_icons = json.loads(open('icons.json','r').read()) + stock_icons = json.loads(open(os.path.dirname(__file__)+'/icons.json','r').read()) except: raise Exception('Unable to load icon file')