27 lines
436 B
Python
27 lines
436 B
Python
# Bryan Schumaker (8/7/2010)
|
|
|
|
__all__ = [ "collection", "music",
|
|
"data", "event", "map", "path"]
|
|
|
|
import event
|
|
import path
|
|
from map import Map
|
|
|
|
# Variables are not saved across sessions, but preferences are
|
|
vars = None
|
|
prefs = None
|
|
|
|
|
|
def startup():
|
|
global vars
|
|
global prefs
|
|
vars = Map()
|
|
prefs = Map("preferences")
|
|
event.start("POSTINIT")
|
|
|
|
|
|
def init_pref(key, value):
|
|
global prefs
|
|
if prefs.get(key) == None:
|
|
prefs[key] = value
|