Changeset - a7de122a7b18
[Not reviewed]
default
0 1 0
drewp@bigasterisk.com - 9 years ago 2016-06-12 02:12:28
drewp@bigasterisk.com
clients were reading this file a LOT. Probably not a performance issue, but distracting in strace output
Ignore-this: 180916361bbcc3b0e3a4fe82bda0990a
1 file changed with 5 insertions and 1 deletions:
0 comments (0 inline, 0 general)
light9/showconfig.py
Show inline comments
 
@@ -28,9 +28,13 @@ def root():
 
            "LIGHT9_SHOW env variable has not been set to the show root")
 
    return r
 

	
 
_showUri = None
 
def showUri():
 
    """Return the show URI associated with $LIGHT9_SHOW."""
 
    return URIRef(file(path.join(root(), 'URI')).read().strip())
 
    global _showUri
 
    if _showUri is None:
 
        _showUri = URIRef(file(path.join(root(), 'URI')).read().strip())
 
    return _showUri
 

	
 
def songOnDisk(song):
 
    """given a song URI, where's the on-disk file that mpd would read?"""
0 comments (0 inline, 0 general)