![]() ![]() Python specific information for Extension creation Once the cws is integrated, I will document these switches on the official pyuno site. There are still some error messages that won't appear in these logs this will improve in the near future (cws pyunofixes4). For Windows, you need some more switches, and the output gets written to files (there is no stdout on windows :-( ). The output may be a little hard to read, but helpful nonetheless. There are also currently-undocumented environment variables that tell the pyUno bridge to log every call. To change this behaviour, one can change the LogLevel If you launch a python script, any error will silently break the execution, making your extension hard to debug. Here is some useful information about using Python in AOO. Windows users can use Gvim and MacVim for OSX users. Here is a nice blog post about using VIM a common Unix/Linux text editor configured in a way that acts like an IDE. OpenOffice's IDE doesn't support Python, so development has to be done from another editor that does. Note that while the UNO API is uniform, the implementation by the two bridges is slightly different, so the syntax required by each is also sometimes different. Requires the add-on pywin32 module so Python can talk to COM. If you already have a different version of Python installed on Windows, you can also access the UNO API using the COM bridge instead of the Python bridge. If you already have a separate Python installation, you can import the uno module (the Python-UNO bridge) to it using these instructions. And as one would expect with any distribution of Python, AOO-Python can be run from the command line as well. To run this version of Python on Linux, you can go directly to the OpenOffice PATH. This Python distribution via OpenOffice comes with the Uno module, which connects the UNO API to the Python scripting language. 3.1 and above shipped with Python version 2.6.1 and older releases shipped with Python version 2.3.4. 2 Python specific information for Extension creationĪpache OpenOffice 4 ships with the Python scripting language, version 2.7. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |