plugins/python/python.py
changeset 418 01f6bfc01251
parent 367 a76ee5307bb7
child 427 7ac746c07ff2
equal deleted inserted replaced
416:3b3f7f5a8e40 418:01f6bfc01251
   262         runtimefile_path = os.path.join(buildpath, "runtime_%s.py"%location_str)
   262         runtimefile_path = os.path.join(buildpath, "runtime_%s.py"%location_str)
   263         runtimefile = open(runtimefile_path, 'w')
   263         runtimefile = open(runtimefile_path, 'w')
   264         runtimefile.write(self.GetPythonCode())
   264         runtimefile.write(self.GetPythonCode())
   265         runtimefile.close()
   265         runtimefile.close()
   266         
   266         
   267         if wx.Platform == '__WXMSW__':
   267         matiec_flags = '"-I%s"'%os.path.abspath(self.GetPlugRoot().GetIECLibPath())
   268             matiec_flags = " -I../../matiec/lib"
       
   269         else:
       
   270             matiec_flags = " -I../matiec/lib"
       
   271         
   268         
   272         return [(Gen_Pythonfile_path, matiec_flags)], "", True, ("runtime_%s.py"%location_str, file(runtimefile_path,"rb"))
   269         return [(Gen_Pythonfile_path, matiec_flags)], "", True, ("runtime_%s.py"%location_str, file(runtimefile_path,"rb"))