Skip to content

Commit 5e2bfaf

Browse files
committed
Renamed GetDLL into GetLib
1 parent edcd9ca commit 5e2bfaf

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

isc/py/Callout.cls

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ Parameter SimpleStringFull As Integer = 5;
2121

2222
Parameter SimpleString As Integer = 6;
2323

24-
/// Get path to DLL.
25-
/// DLL assumed to be in bin folder, unless specified otherwise
26-
ClassMethod GetDLL() [ CodeMode = expression ]
24+
/// Get path to the shared library file.
25+
/// Library file is assumed to be in a bin folder, unless specified otherwise in ^isc.py.Callout global.
26+
/// write ##class(isc.py.Callout).GetLib()
27+
ClassMethod GetLib() [ CodeMode = expression ]
2728
{
2829
$g(^isc.py.Callout, $g(^%SYS("bindir")) _ "iscpython." _ $select($$$isWINDOWS:"dll", 1:"so"))
2930
}
@@ -34,7 +35,7 @@ $g(^isc.py.Callout, $g(^%SYS("bindir")) _ "iscpython." _ $select($$$isWINDOWS:"d
3435
ClassMethod Setup()
3536
{
3637
set sc = $ZF(-4,6,..#PyLibId)
37-
set sc = $ZF(-4,5,..#PyLibId, ..GetDLL())
38+
set sc = $ZF(-4,5,..#PyLibId, ..GetLib())
3839
quit sc
3940
}
4041

@@ -47,7 +48,7 @@ ClassMethod Initialize(debug As %Boolean = {$$$NO}) As %Integer
4748
if debug {
4849
set sc = $ZF(-4,4,..#PyLibId) // unload current copy of inputlib
4950
set sc = $ZF(-4,8) // delete existing process index, if any
50-
set sc = $ZF(-4,7,..#PyLibId, ..GetDLL()) // override system index
51+
set sc = $ZF(-4,7,..#PyLibId, ..GetLib()) // override system index
5152
}
5253
do $ZF(-6, ..#PyLibId, ..#Initialize)
5354
}

0 commit comments

Comments
 (0)