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
Contributor

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 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
@illume
Copy link
Member

illume commented Oct 16, 2018

Thanks, and sorry.

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

This comment was marked as spam.

@illume
Copy link
Member

illume commented Jul 17, 2019 via email

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.

None yet

3 participants