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
|
global prefs
|
||||||
vars = Map()
|
vars = Map()
|
||||||
prefs = Map()
|
prefs = Map()
|
||||||
|
event.start("POSTSTART")
|
||||||
|
|
|
@ -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"):
|
||||||
|
|
Loading…
Reference in New Issue