Separate files

This commit is contained in:
Mauricio Baeza 2020-12-18 23:20:36 -06:00
parent 801b4e7626
commit dc61cfb45c
2 changed files with 18 additions and 0 deletions

View File

@ -101,6 +101,10 @@ class ZAZLaTex2SVG(unohelper.Base, XJobExecutor):
self.ctx = ctx
def trigger(self, args=''):
main.ID_EXTENSION = ID_EXTENSION
main.run(args, __file__)
return
if args == 'app':
self._app()
return

14
source/pythonpath/main.py Normal file
View File

@ -0,0 +1,14 @@
#!/usr/bin/env python3
import easymacro as app
ID_EXTENSION = ''
_ = None
def run(args, path_locales):
global _
_ = app.install_locales(path_locales)
globals()[args]()
return