Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

multiple scripts? #167

Answered by ofek
Redbot asked this question in Q&A
Discussion options

Here's part of a pyproject.toml

[project.scripts]
bigscript = "bigscript.main:main"
smallscript = "bigscript.smallscript:main"

Should I make a separate wrapper for each one?

You must be logged in to vote

Yes a separate binary for each one is probably best. Alternatively, you could set PYAPP_EXEC_SCRIPT to a script that would do stuff based on command line arguments e.g. no arguments could be smallscript.

Replies: 1 comment

Comment options

Yes a separate binary for each one is probably best. Alternatively, you could set PYAPP_EXEC_SCRIPT to a script that would do stuff based on command line arguments e.g. no arguments could be smallscript.

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

AltStyle によって変換されたページ (->オリジナル) /