This repository has been archived on 2023-04-13. You can view files and clone it, but cannot push or open issues or pull requests.
2013-09-04 12:32:17 +02:00
|
|
|
from util import hook
|
2013-12-12 07:00:14 +01:00
|
|
|
from util.pyexec import eval_py
|
2011-11-20 10:23:31 +01:00
|
|
|
|
2013-09-04 12:32:17 +02:00
|
|
|
|
2011-11-20 10:23:31 +01:00
|
|
|
@hook.command
|
|
|
|
def python(inp):
|
2013-09-04 12:32:17 +02:00
|
|
|
"""python <prog> -- Executes <prog> as Python code."""
|
2011-11-20 10:23:31 +01:00
|
|
|
|
2012-08-28 06:51:26 +02:00
|
|
|
return eval_py(inp)
|