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:
parent
c9b59b525d
commit
dc1a2db3f4
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user