Compare commits
No commits in common. "c7bdcd06b923ab817c719523d9243a20deaa3836" and "49a5a454f43c379e2001686e84c6d57cfe8dcbf3" have entirely different histories.
c7bdcd06b9
...
49a5a454f4
|
@ -308,10 +308,7 @@ class RougailBaseTemplate:
|
||||||
async def instance_files(self) -> None:
|
async def instance_files(self) -> None:
|
||||||
"""Run templatisation on all files
|
"""Run templatisation on all files
|
||||||
"""
|
"""
|
||||||
try:
|
|
||||||
ori_dir = getcwd()
|
ori_dir = getcwd()
|
||||||
except FileNotFoundError:
|
|
||||||
ori_dir = None
|
|
||||||
chdir(self.templates_dir)
|
chdir(self.templates_dir)
|
||||||
for option in await self.config.option.list(type='all'):
|
for option in await self.config.option.list(type='all'):
|
||||||
namespace = await option.option.name()
|
namespace = await option.option.name()
|
||||||
|
@ -370,7 +367,6 @@ class RougailBaseTemplate:
|
||||||
self.log.debug(_("Instantiation of file '{filename}' disabled"))
|
self.log.debug(_("Instantiation of file '{filename}' disabled"))
|
||||||
self.post_instance_service(service_name, service_type)
|
self.post_instance_service(service_name, service_type)
|
||||||
self.post_instance()
|
self.post_instance()
|
||||||
if ori_dir is not None:
|
|
||||||
chdir(ori_dir)
|
chdir(ori_dir)
|
||||||
|
|
||||||
async def get_informations(self,
|
async def get_informations(self,
|
||||||
|
|
Loading…
Reference in New Issue