[mod] ensure that the settings.yaml has a title key

This commit is contained in:
Laurent Peuch 2015-12-08 07:18:41 +01:00
parent b7633fb31a
commit a816cb1497

View File

@ -12,6 +12,8 @@ def main():
settings = yaml.safe_load("settings.yaml")
assert settings.get("title"), "You should specify a title in your main settings.yaml"
dirs = filter(lambda x: x not in (".", "..") and os.path.isdir(x) and os.path.exists(os.path.join(os.getcwd(), x, "settings.yaml")), os.listdir(os.getcwd()))
if not dirs: