21 #ifndef TY_M_B_SUBPROCESS_UTIL
22 #define TY_M_B_SUBPROCESS_UTIL
24 #include <QStringList>
25 #include <QTemporaryFile>
43 bool python(QStringList args, std::string& error_msg);
65 bool init_tmp_file(QTemporaryFile& tmp_file,
bool keep_file =
false);
bool python(QStringList args, std::string &error_msg)
Launch a Python subprocess and wait for it using a non-blocking UI loop.
bool must_keep_tmp_files()
Tell whether temporary files should be preserved (debug mode).
void python_request_cancel()
Request cancellation of the currently running Python subprocess (UI hook, stage A).
bool init_tmp_file(QTemporaryFile &tmp_file, bool keep_file=false)
Create and initialize a QTemporaryFile according to the current policy.
bool python_cancel_was_requested()
Query whether a cancellation was requested since the last call to python().