mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
scanner: use Path.resovle instead of undocumented absolute()
This commit is contained in:
parent
c9b59b525d
commit
dc1a2db3f4
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue