deepgram / kur

Descriptive Deep Learning
Apache License 2.0
814 stars 107 forks source link

Module debug #91

Closed greedyuser closed 6 years ago

greedyuser commented 6 years ago

When running kur by calling 'python -m kur' plugins incorrectly replace kur.main.build_parser() leading to plugin parameters not being correctly parsed. The current code works when run as a consul script, but with the -m option the module doesn't appear to be the same so when main() calls buil_parser() it gets the original function instead of the plugin wrapped function. By explicitly calling kur.main.build_parser() from within main() the correct version will be called in all cases.