Updated path for icons.json

master
Gary Steers 2020-03-05 08:18:04 +00:00
parent c6f63d39ef
commit e229c849dd
1 changed files with 2 additions and 2 deletions

View File

@ -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')