+def load(parent, modname, dependent=False):
+ #wrapper to call _load and print return
+ if dependent:
+ print "Loading dependency %s..." % (modname),
+ else:
+ print "%09.3f [MOD] [#] Loading %s... " % (time.time() % 100000, modname),
+ modstatus = _load(parent, modname, dependent)
+ if not modstatus:
+ print str(modstatus)
+ elif modstatus == True:
+ if dependent:
+ print "OK. ",
+ else:
+ print "OK."
+ else:
+ print modstatus
+ return modstatus
+
+def _load(parent, modname, dependent=False):