From c23095daa977e3f2e74e477d3355de254ac85dd1 Mon Sep 17 00:00:00 2001 From: "Dmitriy A. Gerasimov" <dmitriy.gerasimov@demlabs.net> Date: Thu, 20 Feb 2020 02:06:27 +0700 Subject: [PATCH] [*] Updates --- src/libdap-app-cli-python.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/libdap-app-cli-python.c b/src/libdap-app-cli-python.c index 3a03edcf..48637574 100644 --- a/src/libdap-app-cli-python.c +++ b/src/libdap-app-cli-python.c @@ -13,10 +13,11 @@ PyObject* dap_app_cli_main_py(PyObject *self, PyObject *args) { (void) self; char *l_app_name = NULL; + char *l_socket_path = NULL; int l_argc = 0; char ** l_argv = NULL; PyObject* l_args_py = NULL; - if (!PyArg_ParseTuple(args, "sI", &l_app_name, &l_args_py)) + if (!PyArg_ParseTuple(args, "ssI", &l_app_name,&l_socket_path, &l_args_py)) return NULL; Py_ssize_t l_args_py_size = PyList_Size(l_args_py); @@ -26,7 +27,8 @@ PyObject* dap_app_cli_main_py(PyObject *self, PyObject *args) for ( int i = 0; i< l_argc; i++){ l_argv[i] = PyBytes_AsString(PyList_GetItem(l_args_py, i)); } - } + return PyLong_FromLong((long) dap_app_cli_main(l_app_name,l_socket_path,l_argc,l_argv)); + }else + return PyLong_FromLong(-1024); - return PyLong_FromLong((long) dap_app_cli_main(l_app_name,l_argc,l_argv)); } -- GitLab