summaryrefslogtreecommitdiff
path: root/src/plugins/python/weechat-python.c
AgeCommit message (Collapse)Author
2021-10-02plugins: use a different plugin priority for each scripting languageSébastien Helleu
2021-05-11core: split WeeChat home in 4 directories, use XDG directories by default ↵Sébastien Helleu
(issue #1285) The 4 directories (which can be the same): - config: configuration files, certificates - data: log/upgrade files, local plugins, scripts, xfer files - cache: script repository, scripts downloaded (temporary location) - runtime: FIFO pipe, relay UNIX sockets
2021-04-11doc: mark info "python2_bin" as deprecated since version 2.6 (plugin API ↵Sébastien Helleu
reference)
2021-01-02core: update copyright datesSébastien Helleu
2020-08-23api: add argument "bytes" in function string_dyn_concatSébastien Helleu
2020-07-07Add $weechat_sharedir/python for global python package importMarco Sirabella
Related: #1461 Some scripts (eg weechat-matrix) ship directories that need to be imported from the script. Rather than globally installing the python packages to python's `site-packages` the directories can be installed alongside the script in `WEECHAT_SHAREDIR/python`. This change adds that directory to the `$PYTHONPATH` to import successfully.
2020-04-04python: fix crash when invalid UTF-8 string is in a WeeChat hashtable ↵Sébastien Helleu
converted to a Python dict (closes #1463)
2020-01-04core: update copyright datesSébastien Helleu
2019-10-12python: send "bytes" instead of "str" to callbacks in Python 3 when the ↵Sébastien Helleu
string is not UTF-8 valid (issue #1220, closes #1389)
2019-06-15api: add argument "strip_items" in function string_splitSébastien Helleu
2019-04-13api: return allocated string in hook_info callback and function info_getSébastien Helleu
2019-03-10core: replace argument "keep_eol" by "flags" in function string_split ↵Sébastien Helleu
(closes #1322)
2019-01-01core: update copyright datesSébastien Helleu
2018-11-29core: use https for links to GNU GPL licenseSébastien Helleu
2018-07-25scripts: fix duplicated lines in output of script eval (python, perl, ruby, ↵Sébastien Helleu
lua and guile) When there was a call to a hook callback during the eval, the output buffer was cleared too late, and displayed multiple times in the buffer. This commit clears the buffer even before we display it (this display can trigger a hook callback).
2018-07-12python: fix crash when loading a script with Python >= 3.7 (closes #1219)Sébastien Helleu
2018-04-13scripts: fix memory leak in hook_info callbackSébastien Helleu
2018-04-12scripts: fix return value of hook_infolist callback (pointer instead of string)Sébastien Helleu
2018-03-17scripts: hide message when the eval script is unloadedSébastien Helleu
Related to commit 8fbbe8b0d509df26ff86ca8cd7fe4b2205c6d15e.
2018-02-19scripts: display the script name in stdout/stderr output from scriptsSébastien Helleu
2018-01-15scripts: add option "eval_keep_context" in script pluginsSébastien Helleu
2018-01-15scripts: add configuration file for each script pluginSébastien Helleu
2018-01-07core: fix some stylesSébastien Helleu
2018-01-06core: update translations (issue #128)Sébastien Helleu
2018-01-06python: fix error message when executing code from string in ↵Sébastien Helleu
weechat_python_load (issue #128)
2018-01-06scripts: add "eval" option in script commands and info "xxx_eval" (issue #128)Sébastien Helleu
For now this works only in python, perl, ruby and guile.
2018-01-05core: update copyright datesSébastien Helleu
2017-12-23scripts: add option "version" in script commands (closes #1075)Sébastien Helleu
2017-11-04core: add missing includes of stdio.hSébastien Helleu
2017-07-08fset: fix priority of plugin (load it after all other plugins)Sébastien Helleu
This fixes a refresh problem of options after /upgrade in fset buffer.
2017-01-01core: update copyright datesSébastien Helleu
2016-03-21core: add pointer in some callbacks (closes #406)Sébastien Helleu
This pointer is the first argument received by callbacks, and the existing argument "data" is now automatically freed by WeeChat when the object containing the callback is removed. With this new pointer, the linked list of callbacks in scripts has been removed. This will improve speed of scripts (using a lot of hooks), reduce memory used by scripts and reduce time to unload scripts. Following functions are affected in the C API: * exec_on_files * config_new * config_new_section * config_new_option * hook_command * hook_command_run * hook_timer * hook_fd * hook_process * hook_process_hashtable * hook_connect * hook_print * hook_signal * hook_hsignal * hook_config * hook_completion * hook_modifier * hook_info * hook_info_hashtable * hook_infolist * hook_hdata * hook_focus * unhook_all_plugin * buffer_new * bar_item_new * upgrade_new * upgrade_read
2016-01-01core: update copyright datesSébastien Helleu
2015-08-13python: fix cppcheck error on variable "python2_bin" (closes #486)Sébastien Helleu
This fixes only a wrong error report from cppcheck, there was no problem in code with the variable "python2_bin".
2015-04-30core: add comments after some #endifSébastien Helleu
2015-03-07scripts: reset current script pointer when load of script fails in ↵Sébastien Helleu
python/perl/ruby/lua/tcl plugins
2015-03-01python: fix restore of old interpreter when a function is not found in the ↵Sébastien Helleu
script
2015-02-21scripts: reformat some code to make it more readableSébastien Helleu
2015-02-21scripts: improve comments on functions that convert hashtablesSébastien Helleu
2015-01-15core: add priority in plugins to initialize them in orderSébastien Helleu
Current order is: charset, logger, exec, trigger, aspell, alias, fifo, xfer, irc, relay, guile/lua/perl/python/ruby/tcl, script.
2015-01-01core: update copyright datesSébastien Helleu
2014-11-22api: return value in function command(), remove WeeChat error after command ↵Sébastien Helleu
callback if return code is WEECHAT_RC_ERROR
2014-07-12python: fix read of return value for callbacks returning an integer in ↵Sébastien Helleu
Python 2.x (closes #125)
2014-02-21python: return WEECHAT_RC_ERROR in command /python if arguments are ↵Sebastien Helleu
wrong/missing
2014-02-17python: fix interpreter used after unload of a scriptSebastien Helleu
2014-02-10api: add integer return code for functions hook_{signal|hsignal}_sendSebastien Helleu
2014-01-25scripts: fix script interpreter used after register during load of script in ↵Sebastien Helleu
python/perl/ruby/lua/guile plugins (bug #41345)
2014-01-01core: update copyright datesSebastien Helleu
2013-11-28python: fix load of scripts with python >= 3.3Sebastien Helleu
2013-11-18scripts: use #ifdef to check if versions are defined in signal "debug_libs"Sebastien Helleu