diff --git a/easymacro.py b/easymacro.py index 5be5661..5a85ccd 100644 --- a/easymacro.py +++ b/easymacro.py @@ -732,6 +732,9 @@ class LODocument(object): return path_pdf + # ~ If location="document" Then + # ~ sp = ThisComponent.getScriptProvider() + class FormControlBase(object): EVENTS = { diff --git a/files/ZAZPip_v0.4.0.oxt b/files/ZAZPip_v0.4.0.oxt index 8db31d4..009cf99 100644 Binary files a/files/ZAZPip_v0.4.0.oxt and b/files/ZAZPip_v0.4.0.oxt differ diff --git a/source/ZAZPip.py b/source/ZAZPip.py index e3d7e3a..f83f068 100644 --- a/source/ZAZPip.py +++ b/source/ZAZPip.py @@ -249,9 +249,14 @@ class Controllers(object): app.open_file(cmd) else: if app.DESKTOP == 'gnome': - cmd = 'gnome-terminal -- {}'.format(self.path_python) + cmd = 'gnome-terminal -- {}' 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) return diff --git a/source/pythonpath/easymacro.py b/source/pythonpath/easymacro.py index 5be5661..5a85ccd 100644 --- a/source/pythonpath/easymacro.py +++ b/source/pythonpath/easymacro.py @@ -732,6 +732,9 @@ class LODocument(object): return path_pdf + # ~ If location="document" Then + # ~ sp = ThisComponent.getScriptProvider() + class FormControlBase(object): EVENTS = {