# HG changeset patch
# User Tassilo Philipp
# Date 1586620953 -7200
# Node ID 2089026debae17b09c14024dde02ff72535f9911
# Parent  622914f1f3bffcaca98ec5992a81c0d13e1c4735
- allowing 'None' as arg for pydc.load, effectively resulting in dlLoadLibrary(NULL), which is own process

diff -r 622914f1f3bf -r 2089026debae python/pydc/pydcext.c
--- 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);