Skip to content

Why not executable modules in console_scripts? #2690

Answered by webknjaz
abitrolly asked this question in Q&A
Discussion options

You must be logged in to vote

I don't see much use for this. Honestly, I'd prefer a runpy-style invocation (as in python -m importable.thing)

Besides, not having the "if main" thing is really an antipattern — import-time logic is evil.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by webknjaz
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