ocarina/libsaria/__init__.py
Bryan Schumaker 1d609c5606 Add libsaria/controls.py
I will eventually be moving things over to here.  The general rule: if
it has to do with buttons on the gui, then it should probably be
considered a control.
2010-11-23 20:37:24 -05:00

66 lines
1018 B
Python

# Bryan Schumaker (8/7/2010)
__all__ = [ "audio", "sources",
"event", "map", "path", "plugin"]
__major__ = 1
__minor__ = 2
__dev__ = True
__vers__ = "Libsaria %s.%s" % (__major__, __minor__)
if __dev__ == True:
__vers__ += "-dev"
import event
import path
from trees import Tree, PersPrefTree
from path.cache import Cache
# The cache is also saved across sessions
prefs = None
cache = Cache()
plugin = None
audio = None
lastfm = None
controls = None
init_pref = None
# Initialize helpful variables
def init():
global prefs
global init_pref
global audio
global lastfm
prefs = trees.get_pref_tree("preferences")
init_pref = prefs.init_pref
import audio
from path import lastfm
event.start("POSTINIT")
def startup():
global plugin
global controls
import plugin
import controls
event.start("PRESTART")
audio.init()
controls.init()
plugin.load_all()
event.start("POSTSTART")
def shutdown():
event.start("PREQUIT")
import plugin
plugin.quit()
event.start("POSTQUIT")
init()