Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow clean silencing of support prompt #559

Merged
merged 1 commit into from Oct 16, 2018
Merged

Allow clean silencing of support prompt #559

merged 1 commit into from Oct 16, 2018

Conversation

@Bottersnike
Copy link
Member

@Bottersnike Bottersnike commented Oct 15, 2018

As nice as the prompt is, there are some situations where it's really not appropriate. At current, the best way to silence it is something like

import io, sys
stdout = sys.stdout
sys.stdout = io.StringIO()
import pygame
sys.stdout = stdout
del stdout, io, sys

This patch would allow the user to define the PYGAME_HIDE_SUPPORT_PROMPT environment variable in which case importing pygame wouldn't print the extra two lines.

@illume
Copy link
Member

@illume illume commented Oct 15, 2018

No.

#542

@illume illume closed this Oct 15, 2018
@illume illume reopened this Oct 16, 2018
@illume illume merged commit 165bf99 into pygame:master Oct 16, 2018
1 of 2 checks passed
1 of 2 checks passed
continuous-integration/travis-ci/pr The Travis CI build is in progress
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
@illume
Copy link
Member

@illume illume commented Oct 16, 2018

Thanks, and sorry.

@illume illume mentioned this pull request Oct 16, 2018
4 tasks done
@Julian-O

This comment has been minimized.

@illume
Copy link
Member

@illume illume commented Jul 17, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants