I’d love to understand! My module looks like this:
import os
import json
import pyuno
... # all imports here
def bal_launcher(*args):
...
def open_medias(*args):
...
g_exportedScripts = (
bal_launcher,
post_launcher,
open_document,
start_cq,
convert_to_srt_format,
convert_to_elan,
register_new_correction,
)
Ok you completed your answer. Thanks and where would you include your:
g_ImplementationHelper.addImplementation(
InterlinSettingsJob,
“name.JimK.LinguisticTools.InterlinSettings”,
(“com.sun.star.task.Job”,),)
EDIT: I’d like to clarify what I’m looking for exactly.
I made an extension for managers that interacts with a webserver and an other one, more public, that allows to work on local documents.
The second one allows to open a VLC player. So my goal was: 1/ check if the manager extension was installed 2/ if yes, this one has a function to get the url to open in VLC. If no, the url selection is done manually.
So I was thinking of using this pattern:
try:
from rdt_bal import get_my_url
except:
get_my_url = None
and in my function:
def open_vlc(**args):
if get_my_url:
vlc(get_my_url())
else:
vlc()
I’m afraid that in the case of using addImplementatiion It would crash if the manager extension is not installed.