Patching Dec 9, 2021 6-7a CST- All GitLab services may be unavailable for 5-10 minutes

Commit c42229ea authored by Peter Hartman's avatar Peter Hartman
Browse files

renamed file and changes

parent 887df16d
#!/usr/bin/env python3
#!/usr/bin/env python
#
# This is the project on-boarding script for Taiga
......@@ -16,7 +16,11 @@
import click
import os
import yaml
from os import path
config_file = "/etc/settool.conf"
@click.group()
def cli():
......@@ -38,5 +42,23 @@ def add_project():
pass
def setup_setup():
pass
def check_setup():
if path.exists(config_file):
with open(config_file, mode="a") as conf_fp:
try:
conf_yaml = yaml.safe_load(conf_fp)
except yaml.YAMLError as exc:
print(exc)
else
setup_setup()
if not "working_dir" in conf_yaml.keys():
setup_setup()
if __name__ == '__main__':
cli()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment