How to run python macros in LibreOffice?

前端 未结 4 2060
半阙折子戏
半阙折子戏 2021-02-05 03:36

When I go to Tools -> Macros -> Organize Macros -> Python I get this dialog:

\"enter

相关标签:
4条回答
  • 2021-02-05 03:45

    Try to manually make a subdirectory python (all lowercase) inside /home/martin/.config/libreoffice/4/user/Scripts and put your script there.

    This is based on this wiki.openoffice.org documentations.

    0 讨论(0)
  • 2021-02-05 03:48

    I also struggled to get a clear start, so I documented my setup and the things I learned here. If you work through that, you will see that you can place your python script in any folder as long as you link to it correctly.

    EDIT: The old URL-only answer now points to a dead link. That page can still be found on the Internet Archive Wayback Machine or this GitHub Gist.

    0 讨论(0)
  • 2021-02-05 03:57

    Python scripts are located on /usr/lib/libreoffice/share/scripts/python

    Maybe this tutorial will help, as it did for me.

    0 讨论(0)
  • 2021-02-05 04:10

    Follow these instructions:

    1. Install the new APSO extension
    2. then go to Tools -> Macros -> Organize python scripts.
    3. Now, select "My Macros" and choose Menu -> Create Module.

    This documentation helped me the most.

    0 讨论(0)
提交回复
热议问题