Fixed python test plugins to use new API

This commit is contained in:
James Booth
2016-02-23 23:30:31 +00:00
parent 0557eff53b
commit d5c55ea621
3 changed files with 181 additions and 88 deletions

View File

@@ -18,4 +18,10 @@ def prof_init(version, status):
t = threading.Thread(target=_inc_counter)
t.daemon = True
t.start()
prof.register_command("/count", 0, 0, "/count", "Threaded example", "Threaded example", _cmd_count)
synopsis = [ "/count" ]
description = "Python threading example."
args = []
examples = []
prof.register_command("/count", 0, 0, synopsis, description, args, examples, _cmd_count)