Execute each Manifest from the folder in which it resides

parent 05e6060a
......@@ -294,7 +294,11 @@ types:[<type 'int'>]
options = {}
try:
with stdout_io() as stdout_aux:
root_path = os.getcwd()
exec_path = os.path.dirname(self.config_file)
os.chdir(exec_path)
exec(content, extra_context, options)
os.chdir(root_path)
printed = stdout_aux.getvalue()
if len(printed) > 0:
logging.info(
......
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