====== commands ====== /py load Load module with given filename. /py unload Unload module with given filename, or module name. /py reload Reload module with given filename, or module name. /load Does the same as /py load, but works only if filename has a .py extension (which is advised). /unload Does the same as /py unload, but works only with filenames and it must have a .py extension /py list List Python modules loaded. /py exec Execute given Python command interactively. For example, * /py exec import xchat /py exec print xchat.get_info('channel') /py console Open the Python interactive console. This "console" is indeed a query with a special name (>>python<<). Every message you send to this query will be intercepted by the Python plugin interface, and interpreted interactively. Notice that the console and /py exec commands live in the same interpreter state. /py about Show some information about the Python plugin interface. ====== references ====== *[[http://labix.org/xchat-python|xchat-python]] *[[http://blog.nidev.org/127|NiDev 옹의 xchat-script]]