diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-10-27 15:04:13 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-10-27 15:04:13 (GMT) |
commit | 7932fbf156fc357139638a342a46189450f7f484 (patch) | |
tree | e0b0d3d7bb82410e0efeec7a6a5ebb8e0c7a5cc6 /plugins/pychrysalide | |
parent | f6a487181ae950f376b131ce797f7cd058498401 (diff) |
Run Python bindings standalone mode as batch mode.
Diffstat (limited to 'plugins/pychrysalide')
-rw-r--r-- | plugins/pychrysalide/pychrysa.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/pychrysalide/pychrysa.c b/plugins/pychrysalide/pychrysa.c index 742805d..50d2f92 100644 --- a/plugins/pychrysalide/pychrysa.c +++ b/plugins/pychrysalide/pychrysa.c @@ -401,6 +401,17 @@ PyMODINIT_FUNC PyInit_pychrysalide(void) if (_standalone) { + /** + * Comme les sources locales sont prioritaires, le fichier "core/global.h" + * du greffon masque la fonction suivante, issue du corps principal du + * programme. + * + * On la déclare donc à la main. + */ + extern void set_batch_mode(void); + + set_batch_mode(); + init_all_plugins(false); lock_plugin_list_for_reading(); |