diff --git a/ammo/fomod_controller.py b/ammo/fomod_controller.py index e0573d3..be4e211 100755 --- a/ammo/fomod_controller.py +++ b/ammo/fomod_controller.py @@ -74,7 +74,6 @@ def _post_exec(self) -> bool: self._populate_index_commands() return False - def _populate_index_commands(self): """ Hack to get dynamically allocated methods which are @@ -88,14 +87,9 @@ def _populate_index_commands(self): except ValueError: pass for i in range(len(self.page["plugins"])): - setattr( - self, - str(i), - lambda self, i=i: self._select(i) - ) + setattr(self, str(i), lambda self, i=i: self._select(i)) self.__dict__[str(i)].__doc__ = f"Toggle {self.page['plugins'][i]['name']}" - def _normalize(self, destination: Path, dest_prefix: Path) -> Path: """ Prevent folders with the same name but different case