diff --git a/files/ZAZLaTex2SVG_v0.2.0.oxt b/files/ZAZLaTex2SVG_v0.2.0.oxt index 6c2c6fb..b19c02d 100644 Binary files a/files/ZAZLaTex2SVG_v0.2.0.oxt and b/files/ZAZLaTex2SVG_v0.2.0.oxt differ diff --git a/source/ZAZLaTex2SVG.py b/source/ZAZLaTex2SVG.py index d9fa6b2..dcff219 100644 --- a/source/ZAZLaTex2SVG.py +++ b/source/ZAZLaTex2SVG.py @@ -120,24 +120,6 @@ class ZAZLaTex2SVG(unohelper.Base, XJobExecutor): return def _app(self): - result = self._msg1 - if app.paths.exists_app('pdflatex'): - result = self._msg2 - msg = f'pdflatex = {result}\n' - - result = self._msg1 - if app.paths.exists_app('pdfcrop'): - result = self._msg2 - msg += f'pdfcrop = {result}\n' - - result = self._msg1 - if app.paths.exists_app('pdf2svg'): - result = self._msg2 - msg += f'pdf2svg = {result}\n\n' - - msg += _('Not used, if not found some application.') - - app.msgbox(msg) return def _from_selection(self): diff --git a/source/pythonpath/main.py b/source/pythonpath/main.py index 6c5c863..2517269 100644 --- a/source/pythonpath/main.py +++ b/source/pythonpath/main.py @@ -18,7 +18,27 @@ def from_dialog(): def validate_app(): - app.debug('Validate app') + msg1 = _('Not found') + msg2 = _('Found') + + result = msg1 + if app.paths.exists_app('pdflatex'): + result = msg2 + msg = f'pdflatex = {result}\n' + + result = msg1 + if app.paths.exists_app('pdfcrop'): + result = msg2 + msg += f'pdfcrop = {result}\n' + + result = msg1 + if app.paths.exists_app('pdf2svg'): + result = msg2 + msg += f'pdf2svg = {result}\n\n' + + msg += _('Not used, if not found some application.') + + app.msgbox(msg) return