summaryrefslogtreecommitdiff
path: root/lib/utils/pyexec.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-12-26 12:32:33 +0000
committerDamien George <damien.p.george@gmail.com>2015-12-26 12:32:33 +0000
commit84b245f187f9711357b1fd46bebc67266bd028e5 (patch)
tree1df85f4a6a32cd2742ec0ff1690ff4afa919f7d9 /lib/utils/pyexec.h
parent7203b58e876cffe9bb7246e17c206e7b4280f701 (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.h1
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);