diff options
author | Damien George <damien.p.george@gmail.com> | 2015-12-26 12:32:33 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-12-26 12:32:33 +0000 |
commit | 84b245f187f9711357b1fd46bebc67266bd028e5 (patch) | |
tree | 1df85f4a6a32cd2742ec0ff1690ff4afa919f7d9 /lib/utils/pyexec.h | |
parent | 7203b58e876cffe9bb7246e17c206e7b4280f701 (diff) |
lib/utils: Add pyexec_frozen_module to load and execute frozen module.
This is a convenience function similar to pyexec_file. It should be used
instead of raw mp_parse_compile_execute because the latter does not catch
and report exceptions.
Diffstat (limited to 'lib/utils/pyexec.h')
-rw-r--r-- | lib/utils/pyexec.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/utils/pyexec.h b/lib/utils/pyexec.h index 96bb481a5..cf44530c5 100644 --- a/lib/utils/pyexec.h +++ b/lib/utils/pyexec.h @@ -39,6 +39,7 @@ extern pyexec_mode_kind_t pyexec_mode_kind; int pyexec_raw_repl(void); int pyexec_friendly_repl(void); int pyexec_file(const char *filename); +int pyexec_frozen_module(const char *name); void pyexec_event_repl_init(void); int pyexec_event_repl_process_char(int c); |