rename xml to tiram_obj
This commit is contained in:
parent
dd7880a19e
commit
ddf8caa9ca
1 changed files with 5 additions and 4 deletions
9
test.py
9
test.py
|
@ -344,8 +344,9 @@ async def build(server_name, datas, module_infos):
|
|||
except Exception as err:
|
||||
print(f'Try to load {module_info.modules}')
|
||||
raise err from err
|
||||
xml = eolobj.save(None)
|
||||
#print(xml)
|
||||
tiram_obj = eolobj.save(None)
|
||||
# if server_name == 'revprox.in.silique.fr':
|
||||
# print(tiram_obj)
|
||||
#cfg['patches_dir'] = join(test_dir, 'patches')
|
||||
cfg['tmp_dir'] = 'tmp'
|
||||
cfg['destinations_dir'] = join(INSTALL_DIR, datas['module'], CONFIG_DEST_DIR, server_name)
|
||||
|
@ -354,9 +355,9 @@ async def build(server_name, datas, module_infos):
|
|||
makedirs('tmp')
|
||||
makedirs(cfg['destinations_dir'])
|
||||
try:
|
||||
exec(xml, None, optiondescription)
|
||||
exec(tiram_obj, None, optiondescription)
|
||||
except Exception as err:
|
||||
print(xml)
|
||||
print(tiram_obj)
|
||||
raise Exception(f'unknown error when load tiramisu object {err}') from err
|
||||
config = await Config(optiondescription['option_0'], display_name=tiramisu_display_name)
|
||||
await config.property.read_write()
|
||||
|
|
Loading…
Reference in a new issue