diff --git a/src/Mod.py b/src/mod.py similarity index 87% rename from src/Mod.py rename to src/mod.py index 4b990dc..46bcf76 100644 --- a/src/Mod.py +++ b/src/mod.py @@ -33,8 +33,8 @@ class Mod: def __init__(self, path: str) -> None: self.__path = path - with open(path + "config.toml") as configFile: - self.__config = tomlkit.load(configFile) + with open(path + "config.toml") as config_file: + self.__config = tomlkit.load(config_file) if "enabled" not in self.__config: raise InvalidModError("config.toml does not contain the enabled key") @@ -47,9 +47,9 @@ class Mod: # Nothing to do return - with open(self.__path + "config.toml", "w") as configFile: + with open(self.__path + "config.toml", "w") as config_file: self.__config["enabled"] = value - tomlkit.dump(self.__config, configFile) + tomlkit.dump(self.__config, config_file) def __str__(self) -> str: return f"Mod({self.__path})"