yt_run_InteractiveMode – Activate Interactive Python Prompt¶
yt_run_InteractiveMode¶
int yt_run_InteractiveMode(const char* flag_file_name);
Usage: Activate Interactive Python Prompt when file
flag_file_nameis detected.Return:
YT_SUCCESSYT_FAIL: Whenlibytis not compiled with-DINTERACTIVE_MODE, it returnsYT_FAIL.
Must compile
libytwith-DINTERACTIVE_MODE=ON.
Example¶
#include "libyt.h"
...
if (yt_run_InteractiveMode("LIBYT_STOP") != YT_SUCCESS) {
fprintf(stderr, "ERROR: yt_run_InteractiveMode failed!\n");
exit(EXIT_FAILURE);
}