Skip to content

Commit

Permalink
lestarch: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
LeStarch committed Jul 20, 2022
1 parent 9bd8fbc commit c89a038
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/fprime/fbuild/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,12 +402,16 @@ def purge(self):

def purge_install(self):
"""Purge the install directory"""
assert "install_destination" in self.settings, "install_destination not present in settings"
assert (
"install_destination" in self.settings
), "install_destination not present in settings"
self.cmake.purge(self.settings["install_destination"])

def install_dest_exists(self) -> Path:
"""Check if the install destination exists and returns the path if it does"""
assert "install_destination" in self.settings, "install_destination not present in settings"
assert (
"install_destination" in self.settings
), "install_destination not present in settings"
path = Path(self.settings["install_destination"])
return path if path.exists() else None

Expand Down
6 changes: 5 additions & 1 deletion src/fprime/fbuild/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ class IniSettings:
]

PLATFORM_FIELDS = [
("config_directory", SettingType.PATH, partial(join, "framework_path", "config")),
(
"config_directory",
SettingType.PATH,
partial(join, "framework_path", "config"),
),
(
"ac_constants",
SettingType.PATH,
Expand Down

0 comments on commit c89a038

Please sign in to comment.