|
1 | 1 | '''Python soft IOC module.''' |
2 | 2 | import os |
| 3 | +import ctypes |
3 | 4 |
|
4 | | -from epicscorelibs import path |
| 5 | +from setuptools_dso.runtime import find_dso |
| 6 | +import epicscorelibs.path |
| 7 | +import pvxslibs.path |
5 | 8 | from epicscorelibs.ioc import \ |
6 | 9 | iocshRegisterCommon, registerRecordDeviceDriver, pdbbase |
7 | 10 |
|
|
17 | 20 |
|
18 | 21 | # Need to do this before calling anything in device.py |
19 | 22 | iocshRegisterCommon() |
20 | | -for dbd in ('base.dbd', 'PVAServerRegister.dbd', 'qsrv.dbd'): |
21 | | - dbLoadDatabase(dbd, os.path.join(path.base_path, 'dbd'), None) |
| 23 | +base_dbd_path = os.path.join(epicscorelibs.path.base_path, 'dbd') |
| 24 | +dbLoadDatabase('base.dbd', base_dbd_path, None) |
| 25 | +dbLoadDatabase('pvxsIoc.dbd', pvxslibs.path.dbd_path, None) |
22 | 26 | iocStats = os.path.join(os.path.dirname(__file__), "iocStats", "devIocStats") |
23 | 27 | dbLoadDatabase('devIocStats.dbd', iocStats, None) |
24 | 28 |
|
| 29 | +ctypes.CDLL(find_dso('pvxslibs.lib.pvxsIoc'), ctypes.RTLD_GLOBAL) |
| 30 | +os.environ.setdefault('PVXS_QSRV_ENABLE', 'YES') |
25 | 31 | if registerRecordDeviceDriver(pdbbase): |
26 | 32 | raise RuntimeError('Error registering') |
27 | 33 |
|
|
0 commit comments