changeset 32:2089026debae

- allowing 'None' as arg for pydc.load, effectively resulting in dlLoadLibrary(NULL), which is own process
author Tassilo Philipp
date Sat, 11 Apr 2020 18:02:33 +0200
parents 622914f1f3bf
children ba47a3d709d7
files python/pydc/pydcext.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/python/pydc/pydcext.c	Fri Apr 10 20:41:48 2020 +0200
+++ b/python/pydc/pydcext.c	Sat Apr 11 18:02:33 2020 +0200
@@ -74,7 +74,7 @@
 	const char* libpath;
 	void* libhandle;
 
-	if (!PyArg_ParseTuple(args,"s", &libpath))
+	if (!PyArg_ParseTuple(args,"z", &libpath))
 		return PyErr_Format(PyExc_RuntimeError, "libpath argument (str) missing");
 
 	libhandle = dlLoadLibrary(libpath);