Skip to content

Fix the script's module dictionary being printed to stderr#241

Open
TomiBelan wants to merge 1 commit intolinkedin:mainfrom
TomiBelan:fixsysexit
Open

Fix the script's module dictionary being printed to stderr#241
TomiBelan wants to merge 1 commit intolinkedin:mainfrom
TomiBelan:fixsysexit

Conversation

@TomiBelan
Copy link

Fixes #240.

For manual testing: see the example in #240.

$ shiv . -c helloworld -o out.pyz
[...]
$ ./out.pyz
Hello, world!
$ echo $?
0

Success! No stderr output and good return code!

I didn't add automated tests because this area of the shiv codebase has no coverage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Shiv with console script prints the __main__ module dictionary to stderr

1 participant