From 4414d3193925ca404b6d09e67e33d3c3531a735d Mon Sep 17 00:00:00 2001 From: "alexey.stratulat" <alexey.stratulat@demlabs.net> Date: Mon, 23 Mar 2020 15:41:14 +0700 Subject: [PATCH] [+] A check was added to see if the python-cellframe is being assembled as part of a node or separately. --- src/python-cellframe.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/python-cellframe.c b/src/python-cellframe.c index 35cd7a11..9427da8d 100644 --- a/src/python-cellframe.c +++ b/src/python-cellframe.c @@ -487,6 +487,7 @@ PyObject *python_cellframe_deinit(PyObject *self, PyObject *args){ return PyLong_FromLong(0); } +#ifdef DAP_SUPPORT_PYTHON_PLUGINS int main(int argc, char **argv) { wchar_t *program = Py_DecodeLocale(argv[0], NULL); if (program == NULL) { @@ -511,3 +512,4 @@ int main(int argc, char **argv) { PyMem_RawFree(program); return 0; } +#endif -- GitLab