Mercurial > code > home > repos > light9
changeset 329:b20c8d57aa91
add LIGHT9_MPD_SERVER env
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Sun, 18 Jun 2006 23:13:43 +0000 |
parents | 2961f5437f31 |
children | 1a34a0e118cc |
files | light9/networking.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/light9/networking.py Sun Jun 18 23:12:48 2006 +0000 +++ b/light9/networking.py Sun Jun 18 23:13:43 2006 +0000 @@ -1,6 +1,8 @@ +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 @@ -17,7 +19,7 @@ def mpdServer(): """servername, port""" - return 'dash',6600 + return os.getenv('LIGHT9_MPD_SERVER', 'dash'),6600 def kcPort(): return 8050