Skip to content

Commit 3a39a5b

Browse files
authored
Update README.md
1 parent 9a71979 commit 3a39a5b

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,27 @@ Python adapter via callout for InterSystems Data Platforms.
33

44
# Installation
55

6-
1. Load ObjectScript code from [here](https://github.com/intersystems-ru/PythonAdapter/blob/master/isc/py/Callout.cls).
7-
2. Place DLLs in `bin` folder.
6+
1. Load ObjectScript code.
7+
2. Place callout DLL in `bin` folder.
8+
3. Check that your `PYTHONHOME` environment variable points to Python 3.6.
9+
4. Check that your SYSTEM `PATH` environment variable has PYTHONHOME.
10+
5. Execute: `do ##class(isc.py.test.CannibalizationData).Import()` to populate test data
811

912
# Use
1013

14+
1. Call: `do ##class(isc.py.Callout).Setup()` once per systems start (add to ZSTART!)
15+
2. Call: `do ##class(isc.py.Callout).Initialize()` once per process
16+
3. Call main method (can be called many times, context persists): `write ##class(isc.py.Callout).SimpleString(code, data)`
17+
4. Call: `do ##class(isc.py.Callout).Finalize()` to free Python context
18+
5. Call: `write ##class(isc.py.Callout).Unload()` to free callout library
19+
1120
```
21+
do ##class(isc.py.Callout).Setup()
1222
do ##class(isc.py.Callout).Initialize()
1323
write ##class(isc.py.Callout).SimpleString("x='ПРИВЕТ'","x")
1424
write ##class(isc.py.Callout).SimpleString("x=repr('ПРИВЕТ')","x")
1525
write ##class(isc.py.Callout).SimpleString("x=123","x")
26+
do ##class(isc.py.Callout).Finalize()
1627
write ##class(isc.py.Callout).Unload()
1728
```
1829

0 commit comments

Comments
 (0)