Support command hooks not coming from a class instance
This commit is contained in:
parent
dfe5cb0be8
commit
746155fd57
1 changed files with 3 additions and 1 deletions
|
@ -92,6 +92,8 @@ class Module(ModuleManager.BaseModule):
|
||||||
|
|
||||||
buffer = target.buffer
|
buffer = target.buffer
|
||||||
|
|
||||||
|
module_name = ""
|
||||||
|
if hasattr(hook.function, "__self__"):
|
||||||
module_name = hook.function.__self__._name
|
module_name = hook.function.__self__._name
|
||||||
stdout, stderr = StdOut(module_name, target), StdErr(module_name,
|
stdout, stderr = StdOut(module_name, target), StdErr(module_name,
|
||||||
target)
|
target)
|
||||||
|
|
Loading…
Reference in a new issue