zaz-barcode/source/pythonpath/main.py

32 lines
402 B
Python
Raw Normal View History

2020-12-20 22:00:38 -06:00
#!/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