Changeset - 21b458127924
[Not reviewed]
default
0 0 1
drewp@bigasterisk.com - 20 years ago 2005-04-17 05:54:39
drewp@bigasterisk.com
adding showconfig.py, which should have been added a while ago
1 file changed with 28 insertions and 0 deletions:
0 comments (0 inline, 0 general)
light9/showconfig.py
Show inline comments
 
new file 100644
 
from os import path,getenv
 

	
 
def root():
 
    r = getenv("LIGHT9_SHOW")
 
    if r is None:
 
        raise OSError("LIGHT9_SHOW env variable has not been set to the show root")
 
    return r
 

	
 
def musicDir():
 
    return path.join(root(),"music")
 

	
 
def curvesDir():
 
    return path.join(root(),"curves")
 

	
 
def songFilename(song):
 
    return path.join(musicDir(),"%s.wav" % song)
 

	
 
def subtermsForSong(song):
 
    return path.join(root(),"subterms",song)
 

	
 
def subFile(subname):
 
    return path.join(root(),"subs",subname)
 

	
 
def subsDir():
 
    return path.join(root(),'subs')
 

	
 
def patchData():
 
    return path.join(root(),"patchdata.py")
0 comments (0 inline, 0 general)