mirror of
https://github.com/lutris/lutris
synced 2024-09-15 22:09:55 +00:00
Remove extra os.path.join
This commit is contained in:
parent
0bd92fbbdb
commit
af9ceaa31a
|
@ -247,7 +247,7 @@ class RuntimeUpdater:
|
||||||
def download_runtime_versions(self):
|
def download_runtime_versions(self):
|
||||||
"""Download runtime versions from Lutris.net"""
|
"""Download runtime versions from Lutris.net"""
|
||||||
self.runtime_versions = get_runtime_versions(self.pci_ids)
|
self.runtime_versions = get_runtime_versions(self.pci_ids)
|
||||||
with open(os.path.join(settings.RUNTIME_VERSIONS_PATH, "w"), encoding="utf-8") as runtime_file:
|
with open(settings.RUNTIME_VERSIONS_PATH, "w", encoding="utf-8") as runtime_file:
|
||||||
json.dump(self.runtime_versions, runtime_file)
|
json.dump(self.runtime_versions, runtime_file)
|
||||||
return self.runtime_versions
|
return self.runtime_versions
|
||||||
|
|
||||||
|
@ -255,7 +255,7 @@ class RuntimeUpdater:
|
||||||
"""Load runtime versions from json file"""
|
"""Load runtime versions from json file"""
|
||||||
if not system.path_exists(settings.RUNTIME_VERSIONS_PATH):
|
if not system.path_exists(settings.RUNTIME_VERSIONS_PATH):
|
||||||
return {}
|
return {}
|
||||||
with open(os.path.join(settings.RUNTIME_VERSIONS_PATH, "r"), encoding="utf-8") as runtime_file:
|
with open(settings.RUNTIME_VERSIONS_PATH, "r", encoding="utf-8") as runtime_file:
|
||||||
self.runtime_versions = json.load(runtime_file)
|
self.runtime_versions = json.load(runtime_file)
|
||||||
return self.runtime_versions
|
return self.runtime_versions
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue