Information
We are currently investigating an issue with the editor of some pages. Please save your work and avoid to create new pages until this banner is gone.
Note |
---|
In case you haven't done this step already, you must Build and install IDL first. |
Code Block | ||
---|---|---|
| ||
cd ~/workspace getTemplateForDirectory MODROOT_WS pyHelloComp cd pyHelloComp/src mkdir ws touch ws/__init__.py touch ws/HelloComponentImpl.py vim Makefile |
...
Code Block | ||
---|---|---|
| ||
export INTROOT=~/workspace/introot
export PYTHONPATH=$INTROOT/lib/python/site-packages:/alma/ACS-2021AUG/ACSSW/lib/python/site-packages
make all install |
...
Code Block | ||||
---|---|---|---|---|
| ||||
<e Name="HelloWorldPython" Code="ws.HelloComponentImpl" Type="IDL:acsws/workshop/HelloComponent:1.0" Container="aragornContainer" ImplLang="py" /> |
...
Code Block | ||||
---|---|---|---|---|
| ||||
from Acspy.Clients.SimpleClient import PySimpleClient client = PySimpleClient() hc_pycomponent = client.getComponent("HelloWorldPython") print(hc_pycomponent.printHello()) |
Run component:
...