Mercurial > code > home > repos > light9
comparison bin/subserver @ 1060:473db8bebb8f
install a copy of cycloneerr.py
Ignore-this: cd8b94a251fff5cd9412775258a1f2cf
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Mon, 02 Jun 2014 00:19:38 +0000 |
parents | a4632a7b2e17 |
children | 448fe9f81501 |
comparison
equal
deleted
inserted
replaced
1059:7f5a9958095b | 1060:473db8bebb8f |
---|---|
13 from light9.rdfdb.syncedgraph import SyncedGraph | 13 from light9.rdfdb.syncedgraph import SyncedGraph |
14 from light9.rdfdb.patch import Patch | 14 from light9.rdfdb.patch import Patch |
15 from light9.namespaces import L9, DCTERMS | 15 from light9.namespaces import L9, DCTERMS |
16 from light9 import networking, showconfig | 16 from light9 import networking, showconfig |
17 | 17 |
18 try: | 18 from lib.cycloneerr import PrettyErrorHandler |
19 sys.path.append("../homeauto/lib") | |
20 sys.path.append("/home/drewp/projects/homeauto/lib") | |
21 from cycloneerr import PrettyErrorHandler | |
22 except ImportError: | |
23 class PrettyErrorHandler(object): | |
24 pass | |
25 | 19 |
26 liveClients = set() | 20 liveClients = set() |
27 def sendToLiveClients(d=None, asJson=None): | 21 def sendToLiveClients(d=None, asJson=None): |
28 j = asJson or json.dumps(d) | 22 j = asJson or json.dumps(d) |
29 for c in liveClients: | 23 for c in liveClients: |