Exemplo n.º 1
0
    def create_file(self):
        dir = parse_util.target_dir("lua")
        parse_util.ensure_dir(dir)
        pb_map_name = os.path.join(dir, "pb_map.lua")
        self.pb_map = open(pb_map_name, "wb")
        self.write_header()

        self.tmpArr1 = []
        self.tmpArr2 = []
Exemplo n.º 2
0
    def create_file(self):
        dir = parse_util.target_dir("erl")
        parse_util.ensure_dir(dir)
        pb_map_name = os.path.join(dir, "pb_map.erl")
        mm_define_name = os.path.join(dir, "mm_define.hrl")

        self.pb_map = open(pb_map_name, "wb")
        self.mm_define = open(mm_define_name, "wb")
        self.tmpArr1 = []
        self.tmpArr2 = []

        ##write headers
        self.write_header()