equal
deleted
inserted
replaced
13 self.buildpath = None |
13 self.buildpath = None |
14 self.SetBuildPath(self.PluginsRootInstance._getBuildPath()) |
14 self.SetBuildPath(self.PluginsRootInstance._getBuildPath()) |
15 |
15 |
16 def SetBuildPath(self, buildpath): |
16 def SetBuildPath(self, buildpath): |
17 self.buildpath = buildpath |
17 self.buildpath = buildpath |
18 self.exe_path = os.path.join(self.buildpath, "ArmPLC_rom.bin") |
|
19 self.md5_path = os.path.join(self.buildpath, "ArmPLC.md5") |
|
20 |
18 |
21 def GetBinaryCode(self): |
19 def GetBinaryCode(self): |
22 try: |
20 return None |
23 return open(self.exe_path, "rb").read() |
|
24 except Exception, e: |
|
25 return None |
|
26 |
21 |
27 def _GetMD5FileName(self): |
22 def _GetMD5FileName(self): |
28 return os.path.join(self.buildpath, "lastbuildPLC.md5") |
23 return os.path.join(self.buildpath, "lastbuildPLC.md5") |
29 |
24 |
30 def GetBinaryCodeMD5(self): |
25 def GetBinaryCodeMD5(self): |