![]() ![]() As starting and stopping a service may not fit all situations, these steps are optional. The example above should be your preferred use for IDE_utils. With Runner() as jesse_owens: # Start/Stop, Connect/Adapt G_exportedScripts = my_1st_macro, # Published macrosįrom IDE_utils import Runner, XSCRIPTCONTEXT IDE_utils.py can be obtained from GitLab.ĭef my_1st_macro(): pass # Your code goes here ![]() The module skeleton looks like:ĭef connect(host='localhost', port=2002, pipe=None): pass start() and stop() coding facilities are wrapping-up Runner() features. A ScriptContext() object is injected as XSCRIPTCONTEXT built-in. A connect() function bridges the actual IDE and LibreOffice instances. An optional Runners.json configuration file contains service-options pairs holding the services to start and their running conditions. IDE_utils module proposal: A Runner() context manager class is responsible for starting and stopping soffice instances.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |