Browse Source

only load the slice if the Murmur module cannot be imported (e.g., it has not already been loaded)

Natenom/support-murmur-13-1446181288462
Michael Ziegler 15 years ago
parent
commit
92fd130c43
  1. 5
      pyweb/mumble/MumbleCtlIce.py

5
pyweb/mumble/MumbleCtlIce.py

@ -55,6 +55,11 @@ def MumbleCtlIce( connstring ):
Murmur version matches the slice Version. Murmur version matches the slice Version.
""" """
try:
import Murmur
except ImportError:
print "Loading Slice!"
if not settings.SLICE: if not settings.SLICE:
raise EnvironmentError( "You didn't configure a slice file. Please set the SLICE variable in settings.py." ) raise EnvironmentError( "You didn't configure a slice file. Please set the SLICE variable in settings.py." )

Loading…
Cancel
Save