Gui: Wrap PyArg_ParseTupleAndKeywords

This commit is contained in:
Chris Hennes
2023-08-25 13:16:29 -05:00
parent 56d820892c
commit 86a44c9824
5 changed files with 30 additions and 19 deletions

View File

@@ -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;