Fix open shell in OSx
This commit is contained in:
parent
4ae2a1ff01
commit
fcef6c4fb0
|
@ -732,6 +732,9 @@ class LODocument(object):
|
||||||
|
|
||||||
return path_pdf
|
return path_pdf
|
||||||
|
|
||||||
|
# ~ If location="document" Then
|
||||||
|
# ~ sp = ThisComponent.getScriptProvider()
|
||||||
|
|
||||||
|
|
||||||
class FormControlBase(object):
|
class FormControlBase(object):
|
||||||
EVENTS = {
|
EVENTS = {
|
||||||
|
|
Binary file not shown.
|
@ -249,9 +249,14 @@ class Controllers(object):
|
||||||
app.open_file(cmd)
|
app.open_file(cmd)
|
||||||
else:
|
else:
|
||||||
if app.DESKTOP == 'gnome':
|
if app.DESKTOP == 'gnome':
|
||||||
cmd = 'gnome-terminal -- {}'.format(self.path_python)
|
cmd = 'gnome-terminal -- {}'
|
||||||
else:
|
else:
|
||||||
cmd = 'exec {}'.format(self.path_python)
|
if app.IS_MAC:
|
||||||
|
cmd = 'open "{}"'
|
||||||
|
else:
|
||||||
|
cmd = 'exec "{}"'
|
||||||
|
|
||||||
|
cmd = cmd.format(self.path_python)
|
||||||
app.run(cmd)
|
app.run(cmd)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
|
@ -732,6 +732,9 @@ class LODocument(object):
|
||||||
|
|
||||||
return path_pdf
|
return path_pdf
|
||||||
|
|
||||||
|
# ~ If location="document" Then
|
||||||
|
# ~ sp = ThisComponent.getScriptProvider()
|
||||||
|
|
||||||
|
|
||||||
class FormControlBase(object):
|
class FormControlBase(object):
|
||||||
EVENTS = {
|
EVENTS = {
|
||||||
|
|
Loading…
Reference in New Issue