pyDevSup working as a module in require system
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user