Skip to content
Snippets Groups Projects
Commit 5c940d0d authored by Vlad Kondratiev's avatar Vlad Kondratiev
Browse files

added info message about reading the config file and printing its contents in verbose mode

parent 6597cab3
Branches
No related tags found
No related merge requests found
......@@ -122,9 +122,13 @@ the coordinates, or use --pointing option", action="store_true")
# Dictionary with user-specified settings
config = {}
if args.config != "":
if args.verbose:
print(f"Reading config file '{args.config}'...")
with open(args.config, "r") as cfg:
config = yaml.load(cfg, Loader=yaml.FullLoader)
if args.verbose:
for (k, v) in config.items():
print (" %s: %s" % (k, v))
# first check that project is given
if args.project != "": config["project"] = args.project
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment