py_ext/PythonFileCTNMixin.py
changeset 1503 3a238c0c5993
parent 1475 de4ee16f7c6c
child 1511 91538d0c242c
equal deleted inserted replaced
1502:62eb21aab1fb 1503:3a238c0c5993
   256         Gen_PyCfile_path = os.path.join(buildpath, "PyCFile_%s.c"%location_str)
   256         Gen_PyCfile_path = os.path.join(buildpath, "PyCFile_%s.c"%location_str)
   257         pycfile = open(Gen_PyCfile_path,'w')
   257         pycfile = open(Gen_PyCfile_path,'w')
   258         pycfile.write(PyCFileContent)
   258         pycfile.write(PyCFileContent)
   259         pycfile.close()
   259         pycfile.close()
   260 
   260 
   261         matiec_flags = '"-l -p -I%s"'%os.path.abspath(
   261         matiec_CFLAGS = '"-I%s"'%os.path.abspath(
   262             self.GetCTRoot().GetIECLibPath())
   262             self.GetCTRoot().GetIECLibPath())
   263 
   263 
   264         return ([(Gen_PyCfile_path, matiec_flags)],
   264         return ([(Gen_PyCfile_path, matiec_CFLAGS)],
   265                 "",
   265                 "",
   266                 True,
   266                 True,
   267                 ("runtime_%s.py"%location_str, file(runtimefile_path,"rb")))
   267                 ("runtime_%s.py"%location_str, file(runtimefile_path,"rb")))
   268 
   268