42 def generate_file(self,overwrite,full_qualified_filename,template_file):
43 if template_file!=
None and write_file(overwrite,self.
default_overwrite,full_qualified_filename):
45 print(
"{} written by {}".format(full_qualified_filename, os.path.basename(inspect.getfile(self.
__class__))))
46 with open( os.path.realpath(template_file),
"r" )
as input:
47 template = input.read()
48 with open( full_qualified_filename,
"w" )
as output:
49 output.write( template.format(**self.
d) )
52 if not os.path.exists( directory +
"/" + self.
subdirectory ):