Bug with raw code edit fixed
authorlbessard
Thu, 25 Oct 2007 16:59:17 +0200
changeset 66 b46237718b27
parent 65 e55d6faee9d1
child 67 862da764c5b5
Bug with raw code edit fixed
plugger.py
--- a/plugger.py	Thu Oct 25 16:46:56 2007 +0200
+++ b/plugger.py	Thu Oct 25 16:59:17 2007 +0200
@@ -896,7 +896,7 @@
         return True
         
         
-        # Link object files into something that can be executed on target
+    # Link object files into something that can be executed on target
 
     def _showIECcode(self, logger):
         plc_file = self._getIECcodepath()
@@ -914,6 +914,12 @@
 
     def _editIECrawcode(self, logger):
         new_dialog = wx.Frame(None)
+        
+        buildpath = self._getBuildPath()
+        # Eventually create build dir
+        if not os.path.exists(buildpath):
+            os.mkdir(buildpath)
+        
         controler = MiniTextControler(self._getIECrawcodepath())
         ST_viewer = TextViewer(new_dialog, None, controler)
         #ST_viewer.Enable(False)