Fix error on Windows

This commit is contained in:
boris
2020-11-27 15:10:18 +01:00
parent 1be5ec61ad
commit 83b51c4620

View File

@@ -4,7 +4,7 @@ import json
class D810Configuration(object):
def __init__(self):
self.config_dir = os.path.join(os.getenv("HOME"), ".idapro", "plugins", "d810", "conf")
self.config_dir = os.path.abspath(os.path.dirname(os.path.realpath(__file__)))
self.config_file = os.path.join(self.config_dir, "options.json")
with open(self.config_file, "r") as fp:
self._options = json.load(fp)