...
Code Block |
---|
|
export INTROOT=~/workspace/introot
export PYTHONPATH=$INTROOT/lib/python/site-packages:/alma/ACS-2021OCT/ACSSW/lib/python/site-packages
make all install |
Testing
Create client python file:
Code Block |
---|
|
cd ~/workspace
touch client.py
vim client.py |
We fill it as follow:
Code Block |
---|
language | py |
---|
title | ~/workspace/client.py |
---|
|
from Acspy.Clients.SimpleClient import PySimpleClient
client = PySimpleClient()
hc_py = client.getComponent("PY_HELLO_COMP")
print(hc_py.printHello()) |
Run client:
Code Block |
---|
|
python client.py |
Example output:
Code Block |
---|
...
Hello World!
... |