1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 22:40:12 +01:00

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()
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:
self.data = json.load(f)