Would it be possible to throw what amounts to "main()" into an actual function?
Hi Eric,
would it be possible to put the code block under:
if __name__ == '__main__':
into its own function? This would make it possible to monkey-patch reposurgeon
by treating it as a conventional module.
I know of exec
, but some things aren't as easy to accomplish this late in the execution as they are early on.
If you think this would be fine, I'll send a pull request.
Thanks for considering.