diff python/ide.py @ 288:a747a45dcd78

Various styling work
author Windel Bouwman
date Thu, 21 Nov 2013 14:26:13 +0100
parents 1c7c1e619be8
children bd2593de3ff8
line wrap: on
line diff
--- a/python/ide.py	Thu Nov 21 11:57:27 2013 +0100
+++ b/python/ide.py	Thu Nov 21 14:26:13 2013 +0100
@@ -4,6 +4,7 @@
 import os
 import logging
 import traceback
+import io
 
 from PyQt4.QtCore import *
 from PyQt4.QtGui import *
@@ -292,7 +293,7 @@
         wd = os.path.dirname(fn)
         self.diag.clear()
         outs = outstream.TextOutputStream()
-        if not zcc.zcc(ce.Source, outs, self.diag, pack_dir=wd):
+        if not zcc.zcc([io.StringIO(ce.Source)], [], outs, self.diag):
             # Set errors:
             self.builderrors.setErrorList(self.diag.diags)
             ce.setErrors(self.diag.diags)
@@ -306,7 +307,7 @@
         wd = os.path.dirname(fn)
         self.diag.clear()
         outs = outstream.TextOutputStream()
-        if not zcc.zcc(ce.Source, outs, self.diag, do_optimize=True):
+        if not zcc.zcc([io.StringIO(ce.Source)], [], outs, self.diag):
             # Set errors:
             self.builderrors.setErrorList(self.diag.diags)
             ce.setErrors(self.diag.diags)
@@ -336,4 +337,3 @@
     ide.show()
     ide.logger.info('IDE started')
     app.exec_()
-