Alex Potter <
spa...@alepot.org> wrote:
> > If I launch it using an SSH session, I get a "pygame.error: Unable to
> > open a console terminal" from pygame.display.init().
> >
> > So far, the only way I can get this to work is to launch the script
> > with:
> >
> > DISPLAY=:0 python pygame_example.py
> >
> > It seems that setting the os.environ values in the script has no effect
> > whatsoever.
> >
> > What is the correct way to do this?
> ssh -t ?
Same result. But in any case, I was hoping to manage this in the script
itself. It seems reasonable that a program should be able to determine
where its own output goes.
Daniele