Created libsaria.startup()

This function should be called to initialize the preferences and
variables dictionary when libsaria is started.  This function triggers
the POSTSTARTUP event.
This commit is contained in:
Bryan Schumaker 2010-08-07 14:36:37 -04:00
parent 57ec240798
commit 28d23faa5a
2 changed files with 2 additions and 2 deletions

View File

@ -14,3 +14,4 @@ def startup():
global prefs global prefs
vars = Map() vars = Map()
prefs = Map() prefs = Map()
event.start("POSTSTART")

View File

@ -14,8 +14,7 @@ after = now()
print "libsaria loaded (", after-before, ")" print "libsaria loaded (", after-before, ")"
if len(sys.argv) == 1: if len(sys.argv) == 1:
from libsaria import fns libsaria.startup()
fns.startup()
print print
print "Available tests:" print "Available tests:"
for file in os.listdir("tests"): for file in os.listdir("tests"):