fixed up some PEP warnings, and put a few debugging print statements into comments
This commit is contained in:
parent
259eb14238
commit
2fd9a8eb64
1 changed files with 9 additions and 1 deletions
|
|
@ -31,6 +31,10 @@ def command(program=None, cmd=None, extra_param=None):
|
|||
|
||||
configuration_program = getattr(configuration.maintenance, program)
|
||||
|
||||
# debugging
|
||||
# print("configuration_program: %s" %
|
||||
# configuration_program.commands.keys())
|
||||
|
||||
if cmd is None:
|
||||
print("Error: You have not given a legitimate command")
|
||||
print("permissable commands : %s" %
|
||||
|
|
@ -45,6 +49,9 @@ def command(program=None, cmd=None, extra_param=None):
|
|||
|
||||
_command = getattr(configuration_program.commands, cmd)
|
||||
|
||||
# debugging
|
||||
# print("_command: %s" % _command)
|
||||
|
||||
if extra_param is not None:
|
||||
_command = "{command} {param}".format(
|
||||
command=_command, param=extra_param)
|
||||
|
|
@ -237,7 +244,8 @@ def load_configuration(name, branch):
|
|||
elif name == "layout":
|
||||
file_path = _get_configuration_path('layout', branch)
|
||||
|
||||
configuration_file = yaml.load(open(file_path, 'r'), Loader=yaml.FullLoader)
|
||||
configuration_file = yaml.load(
|
||||
open(file_path, 'r'), Loader=yaml.FullLoader)
|
||||
return configuration_file
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue