python fixes
now, one can do "script run mything.py" multiple times without crashing, and exit codes are correct. Pm3PyRun_SimpleFileNoExit: * use XDECREF instead of DECREF (handles possible nullptr). * don't double-free "er". * print exit status correctly. CmdScriptRun: * allow invoking scripts multiple times. * fix memleak of argtable contents if help path not triggered. * configure_c_stdio should be 0 or 1, not < 0. * py_conf: don't explicitly set options to their default values, it's confusing. * Call Py_Finalize only when exiting pm3. main_loop: * cleanup cmdscript from main_loop. Important to call Py_Finalize from here in case Qt is used (in which case main_loop is on Qt thread). ProxGuiQT::MainLoop: * reduce timer delay to 0 - there isn't a need to wait here.
This commit is contained in:
1 parent
65de25c67e
commit
148e5ed2d1
4 files changed
+173
-72
No files matched your search
@@ -22,5 +22,6 @@
|
||||
#include "common.h"
|
||||
|
||||
int CmdScript(const char *Cmd);
|
||||
void CmdScriptCleanup(void);
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user