mirror of
https://github.com/ModOrganizer2/modorganizer-basic_games.git
synced 2026-07-27 14:07:29 -07:00
Reformat with black
This commit is contained in:
@@ -7,7 +7,6 @@ from os import path
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
|
||||
class KerbalSpaceProgramSaveGame(BasicGameSaveGame):
|
||||
def allFiles(self):
|
||||
group = path.parent
|
||||
@@ -16,13 +15,14 @@ class KerbalSpaceProgramSaveGame(BasicGameSaveGame):
|
||||
if banner.exists():
|
||||
files.append(banner)
|
||||
return files
|
||||
|
||||
|
||||
def getName(self):
|
||||
return self._filepath.stem
|
||||
|
||||
|
||||
def getSaveGroupIdentifier(self):
|
||||
return path.parent.name
|
||||
|
||||
|
||||
class KerbalSpaceProgramGame(BasicGame):
|
||||
|
||||
Name = "Kerbal Space Program Support Plugin"
|
||||
@@ -41,7 +41,9 @@ class KerbalSpaceProgramGame(BasicGame):
|
||||
def init(self, organizer):
|
||||
super().init(organizer)
|
||||
self._featureMap[mobase.SaveGameInfo] = BasicGameSaveGameInfo(
|
||||
lambda s: str(Path(s).parent.joinpath("banners").joinpath(f"{Path(s).stem}.png"))
|
||||
lambda s: str(
|
||||
Path(s).parent.joinpath("banners").joinpath(f"{Path(s).stem}.png")
|
||||
)
|
||||
)
|
||||
return True
|
||||
|
||||
@@ -50,4 +52,4 @@ class KerbalSpaceProgramGame(BasicGame):
|
||||
return [
|
||||
KerbalSpaceProgramSaveGame(path)
|
||||
for path in Path(folder.absolutePath()).glob(f"*/*.{ext}")
|
||||
]
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user