Skip to content
Discussion options

You must be logged in to vote

This is not a poetry problem.

Basically, the code you've got in your name == "main" stanza, needs to be put into a function of it's own, so that it's run in an event loop.

So put that code in a function (call it, say, run) then change the tool.poetry.scripts entry to point to the run function.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jiaulislam
Comment options

Answer selected by neersighted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants