# HG changeset patch # User Drew Perttula # Date 2006-06-18 23:13:43 # Node ID b20c8d57aa91bd11e469427fb70e13fdae0c6475 # Parent 2961f5437f314a48d521e48be4c5644a6ef3cb0c add LIGHT9_MPD_SERVER env diff --git a/light9/networking.py b/light9/networking.py --- a/light9/networking.py +++ b/light9/networking.py @@ -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 musicPort(): def mpdServer(): """servername, port""" - return 'dash',6600 + return os.getenv('LIGHT9_MPD_SERVER', 'dash'),6600 def kcPort(): return 8050