Skip to content

Commit 1d05114

Browse files
committed
Restore operation of devIocStats
Does look as if it hasn't actually worked for quite a while...
1 parent d50734c commit 1d05114

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

configure/RELEASE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# Build settings that are NOT module paths should appear in a
2020
# CONFIG_SITE file.
2121

22-
# DEVIOCSTATS = /dls_sw/prod/R3.14.12.3/support/devIocStats/3-1-5dls7
22+
DEVIOCSTATS = /dls_sw/prod/R3.14.12.3/support/devIocStats/3-1-14dls2-4
2323

2424
# EPICS_BASE usually appears last so other apps can override stuff:
2525
EPICS_BASE=/dls_sw/epics/R3.14.12.3/base

example/startup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
from testing import *
99

10+
softioc.devIocStats('TS-DI-TEST-01')
11+
1012
builder.LoadDatabase()
1113
softioc.iocInit()
1214

python/softioc/softioc.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ def dbLoadDatabase(database, path = None, substitutions = None):
157157

158158
def devIocStats(ioc_name):
159159
dbLoadDatabase(
160-
'db/ioc.db', os.getenv('HERE'), 'IOCNAME=%s,name=' % ioc_name)
160+
'ioc.db', os.path.join(os.getenv('HERE'), 'db'),
161+
'IOCNAME=%s,name=' % ioc_name)
161162

162163

163164
def interactive_ioc(context = {}, call_exit = True):

0 commit comments

Comments
 (0)