fix #1829 Py_SetProgramName is deprecated, but was optional in our code.

This commit is contained in:
iceman1001 2022-12-05 19:28:42 +01:00
parent 8502736e2c
commit 38cb327991

View file

@ -407,7 +407,7 @@ static int CmdScriptRun(const char *Cmd) {
} }
// optional but recommended // optional but recommended
Py_SetProgramName(program); //Py_SetProgramName(program);
#ifdef HAVE_PYTHON_SWIG #ifdef HAVE_PYTHON_SWIG
// hook Proxmark3 API // hook Proxmark3 API
PyImport_AppendInittab("_pm3", PyInit__pm3); PyImport_AppendInittab("_pm3", PyInit__pm3);