[enh] check for settings.yaml

This commit is contained in:
Laurent Peuch 2015-12-08 06:57:17 +01:00
parent 0f1b4a1dea
commit cc0aedccf3

View File

@ -1,9 +1,14 @@
#!/usr/bin/env python
import os
import sys
def main():
if not os.path.exists("settings.yaml") or not os.path.exists("settings.yml"):
sys.stderr.write("I can't find a settings.yaml or settings.yml, abort")
sys.exit(1)
if not os.path.exists("build"):
os.makedirs("build")