Gui: Wrap PyArg_ParseTupleAndKeywords
This commit is contained in:
@@ -41,6 +41,7 @@
|
||||
#include <App/PropertyFile.h>
|
||||
#include <Base/Interpreter.h>
|
||||
#include <Base/Console.h>
|
||||
#include <Base/PyWrapParseTupleAndKeywords.h>
|
||||
#include <CXX/Objects.hxx>
|
||||
|
||||
#include "Application.h"
|
||||
@@ -1475,7 +1476,7 @@ PyObject* Application::sReload(PyObject * /*self*/, PyObject *args)
|
||||
|
||||
PyObject* Application::sLoadFile(PyObject * /*self*/, PyObject *args)
|
||||
{
|
||||
char *path, *mod = "";
|
||||
const char *path, *mod = "";
|
||||
if (!PyArg_ParseTuple(args, "s|s", &path, &mod))
|
||||
return nullptr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user