Mercurial > code > home > repos > light9
view light9/networking.py @ 390:5d2b119443f2
keyboardcomposer: fix (one) refresh bug
author | David McClosky <dmcc@bigasterisk.com> |
---|---|
date | Fri, 15 Jun 2007 23:30:12 +0000 |
parents | 430014be95ce |
children | 3926ab3b7ceb |
line wrap: on
line source
import os from ConfigParser import SafeConfigParser # my intent was to pull these from a file in the LIGHT9_SHOW/ directory def dmxServerUrl(): #host = os.getenv('DMXHOST', 'localhost') #url = "http://%s:8030" % host return "http://localhost:%s" % dmxServerPort() def dmxServerPort(): return 8030 def musicUrl(): return "http://score:%s" % musicPort() def musicPort(): return 8040 def mpdServer(): """servername, port""" return os.getenv('LIGHT9_MPD_SERVER', 'score'),6600 def kcPort(): return 8050 def kcServer(): return 'dash'