Mercurial > code > home > repos > light9
changeset 593:39752169b803
don't try to read sub graphs for virtual subterms (chases)
Ignore-this: b4bbcab615f9887345c952bbc41eb171
author | drewp@bigasterisk.com |
---|---|
date | Sun, 20 Jun 2010 05:05:27 +0000 |
parents | 776401dea077 |
children | f8ef5bf54f67 |
files | light9/Submaster.py |
diffstat | 1 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/light9/Submaster.py Sun Jun 20 05:04:47 2010 +0000 +++ b/light9/Submaster.py Sun Jun 20 05:05:27 2010 +0000 @@ -70,9 +70,13 @@ # use the main one! The sub graphs will eventually # just be part of the one and only shared graph graph = Graph() - inFile = showconfig.subFile(self.name) - log.info("reading %s", inFile) - graph.parse(inFile, format="n3") + if not self.name: + # anon sub, maybe for a chase + pass + else: + inFile = showconfig.subFile(self.name) + log.info("reading %s", inFile) + graph.parse(inFile, format="n3") self.uri = L9['sub/%s' % self.name] for lev in graph.objects(self.uri, L9['lightLevel']): chan = graph.value(lev, L9['channel'])