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:
parent
57ec240798
commit
28d23faa5a
|
@ -14,3 +14,4 @@ def startup():
|
|||
global prefs
|
||||
vars = Map()
|
||||
prefs = Map()
|
||||
event.start("POSTSTART")
|
||||
|
|
|
@ -14,8 +14,7 @@ after = now()
|
|||
print "libsaria loaded (", after-before, ")"
|
||||
|
||||
if len(sys.argv) == 1:
|
||||
from libsaria import fns
|
||||
fns.startup()
|
||||
libsaria.startup()
|
||||
print
|
||||
print "Available tests:"
|
||||
for file in os.listdir("tests"):
|
||||
|
|
Loading…
Reference in New Issue