pyDevSup working as a module in require system

This commit is contained in:
2020-08-21 14:31:34 +02:00
parent 3f5569fc5e
commit 65519f950a
6 changed files with 92 additions and 2 deletions
+3 -1
View File
@@ -27,7 +27,7 @@
initHookState pyInitLastState;
extern int pyDevSupCommon_registerRecordDeviceDriver(DBBASE *pbase);
/* extern int pyDevSupCommon_registerRecordDeviceDriver(DBBASE *pbase); */
typedef struct {
const initHookState state;
@@ -264,9 +264,11 @@ PyObject *py_iocInit(PyObject *unused, PyObject *args, PyObject *kws)
static
PyObject *py_pyDevSupCommon(PyObject *unused)
{
/*
Py_BEGIN_ALLOW_THREADS {
pyDevSupCommon_registerRecordDeviceDriver(pdbbase);
} Py_END_ALLOW_THREADS
*/
Py_RETURN_NONE;
}
+4
View File
@@ -46,6 +46,10 @@ from ._dbapi import (EPICS_VERSION_STRING,
__all__ = []
def _init(iocMain=False):
_dbapi._dbd_setup()
return
def _initOld(iocMain=False):
if not iocMain:
# we haven't read/register base.dbd
_dbapi.dbReadDatabase(os.path.join(XEPICS_BASE, "dbd", "base.dbd"),