Пример #1
0
 def __init__(self, parser, output_path=""):
     Writer.__init__(self)
     self.parser = parser
     self.out_file = open(
         os.path.join(output_path, self.parser.parsedModel.name + ".cu"),
         "w")
     self.rename()
Пример #2
0
 def __init__(self, parser, output_path="", use_molecule_counts=False):
     Writer.__init__(self)
     self.parser = parser
     self.use_molecule_counts = use_molecule_counts
     self.out_file = open(os.path.join(output_path, self.parser.parsedModel.name + ".cu"), "w")
     self.rename()