Mercurial > lcfOS
diff python/ide.py @ 289:bd2593de3ff8
Semifix burn2
author | Windel Bouwman |
---|---|
date | Thu, 21 Nov 2013 15:46:50 +0100 |
parents | a747a45dcd78 |
children |
line wrap: on
line diff
--- a/python/ide.py Thu Nov 21 14:26:13 2013 +0100 +++ b/python/ide.py Thu Nov 21 15:46:50 2013 +0100 @@ -290,7 +290,6 @@ if not ce: return fn = ce.FileName - wd = os.path.dirname(fn) self.diag.clear() outs = outstream.TextOutputStream() if not zcc.zcc([io.StringIO(ce.Source)], [], outs, self.diag): @@ -304,10 +303,10 @@ if not ce: return fn = ce.FileName - wd = os.path.dirname(fn) self.diag.clear() outs = outstream.TextOutputStream() - if not zcc.zcc([io.StringIO(ce.Source)], [], outs, self.diag): + imps = [open(ce.FileName, 'r') for ce in self.allChildren() if ce.FileName and ce.FileName != fn] + if not zcc.zcc([open(fn, 'r')], imps, outs, self.diag): # Set errors: self.builderrors.setErrorList(self.diag.diags) ce.setErrors(self.diag.diags)