Commit 477c1a1f authored by Carl Friedrich Bolz-Tereick's avatar Carl Friedrich Bolz-Tereick
Browse files

hide pygame message, as it can mess up the communication with the server

--HG--
branch : dotviewer-python3
parent e69156de7c76
Pipeline #21709 passed with stage
in 7 minutes and 37 seconds
......@@ -5,6 +5,7 @@ A custom graphic renderer for the '.plain' files produced by dot.
from __future__ import absolute_import, print_function
import re, os, math
os.environ['PYGAME_HIDE_SUPPORT_PROMPT'] = "hide"
import pygame
from pygame.locals import *
......
from __future__ import print_function, absolute_import
import os, time, sys
os.environ['PYGAME_HIDE_SUPPORT_PROMPT'] = "hide"
import pygame
from pygame.locals import *
from dotviewer.drawgraph import GraphRenderer, FIXEDFONT
......
......@@ -179,6 +179,7 @@ if __name__ == '__main__':
help = (" | if you want to debug on a remote machine, see\n"
" | instructions in dotviewer/sshgraphserver.py\n")
try:
os.environ['PYGAME_HIDE_SUPPORT_PROMPT'] = "hide"
import pygame
if isinstance(e, pygame.error):
print(help, file=f)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment