32 lines
402 B
Python
32 lines
402 B
Python
#!/usr/bin/env python3
|
|
|
|
import easymacro as app
|
|
|
|
|
|
ID_EXTENSION = ''
|
|
_ = None
|
|
|
|
|
|
def _use_dialog():
|
|
print('dialog')
|
|
return
|
|
|
|
|
|
def _insert_code(type_code):
|
|
print(type_code)
|
|
return
|
|
|
|
|
|
@app.catch_exception
|
|
def run(args, path_locales):
|
|
global _
|
|
|
|
_ = app.install_locales(path_locales)
|
|
|
|
if args == 'used_dialog':
|
|
_use_dialog()
|
|
else:
|
|
_insert_code(args)
|
|
|
|
return
|