39 def generate_file(self,overwrite,full_qualified_filename,template_file):
40 if template_file!=
None and write_file(overwrite,self.
default_overwrite,full_qualified_filename):
42 print(
"[{}] writes {}".format(inspect.getfile(self.
__class__), full_qualified_filename ))
43 with open( os.path.realpath(template_file),
"r" )
as input:
44 template = input.read()
45 with open( full_qualified_filename,
"w" )
as output:
46 output.write( template.format(**self.
d) )