Mercurial > code > home > repos > light9
view test/run_local.py @ 1236:e644d8f10c04
start 2015 show data
Ignore-this: 1534a0efa18679c66781bea463b8b74e
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Wed, 10 Jun 2015 05:50:04 +0000 |
parents | a6662d61ebcd |
children |
line wrap: on
line source
import shutil import sys,os sys.path.insert(0,os.path.join(os.path.dirname(__file__),"..")) os.environ['LIGHT9_SHOW'] = "_test_show" try: shutil.rmtree("_test_show") except OSError: pass os.mkdir("_test_show") f = open("_test_show/config.n3", "w") f.write(""" @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix : <http://light9.bigasterisk.com/> . @prefix ch: <http://light9.bigasterisk.com/theater/skyline/channel/> . @prefix dmx: <http://light9.bigasterisk.com/dmx/> . ch:frontLeft a :Channel; rdfs:label "frontLeft"; :altName "b1"; :output dmx:c1 . ch:frontRight a :Channel; rdfs:label "frontRight"; :output dmx:c2 . dmx:c1 :dmxAddress 1 . dmx:c2 :dmxAddress 2 . """) f.close()