From b19f82255c44363a45ae0024e7b5198ef86723db Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Wed, 9 Oct 2019 16:17:34 +0800 Subject: [PATCH] App: fix wrong python function type in FreeCAD.open() --- src/App/ApplicationPy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App/ApplicationPy.cpp b/src/App/ApplicationPy.cpp index 2f45919ef1..66bcebfad8 100644 --- a/src/App/ApplicationPy.cpp +++ b/src/App/ApplicationPy.cpp @@ -103,7 +103,7 @@ PyMethodDef Application::Methods[] = { "* If no module is given it will be determined by the file extension.\n" "* If more than one module can load a file the first one one will be taken.\n" "* If no module exists to load the file an exception will be raised."}, - {"open", (PyCFunction) Application::sOpenDocument, METH_VARARGS, + {"open", (PyCFunction) Application::sOpenDocument, METH_VARARGS|METH_KEYWORDS, "See openDocument(string)"}, {"openDocument", (PyCFunction) Application::sOpenDocument, METH_VARARGS|METH_KEYWORDS, "openDocument(filepath,hidden=False) -> object\n"