1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# Helpers for LibreOffice extension
import os
import traceback
import subprocess
import uno
from com.sun.star.beans import PropertyValue
from com.sun.star.uno import RuntimeException as _rtex
def start_console ():
"open console from APSO extension"
try:
xContext = uno.getComponentContext()
xContext.ServiceManager.createInstance("apso.python.script.organizer.impl")
# now we can import apso_utils library
from apso_utils import console
console()
|
|
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# Helpers for LibreOffice extension
import os
import traceback
import subprocess
import uno
from com.sun.star.beans import PropertyValue
from com.sun.star.uno import RuntimeException as _rtex
def startConsole ():
"open console from APSO extension"
try:
xContext = uno.getComponentContext()
xContext.ServiceManager.createInstance("apso.python.script.organizer.impl")
# now we can import apso_utils library
from apso_utils import console
console()
|