diff --git a/plugin/main.py b/plugin/main.py index 464a150..12c57e4 100644 --- a/plugin/main.py +++ b/plugin/main.py @@ -25,6 +25,8 @@ def __init__(self): super().__init__() def filter(self, icon): + if not os.path.exists('./icons/'): + os.mkdir('./icons') if not os.path.isfile('./icons/{}.svg'.format(icon['name'])): with open('./icons/{}.svg'.format(icon['name']), 'w') as f: f.write(SVG_FILE.format(icon['data']))