scanner: use Path.resovle instead of undocumented absolute()

This commit is contained in:
Michael Pöhn 2022-09-29 10:33:01 +02:00
parent c9b59b525d
commit dc1a2db3f4

View file

@ -209,7 +209,7 @@ class SignatureDataController:
self.write_to_cache() self.write_to_cache()
def load_from_defaults(self): def load_from_defaults(self):
sig_file = Path(__file__).absolute().parent / 'data' / 'scanner' / self.filename sig_file = (Path(__file__).parent / 'data' / 'scanner' / self.filename).resolve()
with open(sig_file) as f: with open(sig_file) as f:
self.data = json.load(f) self.data = json.load(f)