cbmarcum commented on pull request #83:
URL: https://github.com/apache/openoffice/pull/83#issuecomment-657278578
A test macro..
```python
import sys
def HelloVersionPython( ):
"""Prints the Python version into the current document"""
#get the doc from the scripting context which is made available to all
scripts
model = XSCRIPTCONTEXT.getDocument()
text = model.Text
cursor = text.createTextCursor()
text.insertString( cursor, sys.version, 0 )`
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]