Querying Graphics Card Name

Benjamin Goldenberg bgoldenberg at gmail.com
Thu Aug 9 18:14:46 EDT 2007


On Aug 9, 4:06 pm, Richard Jones <richardjo... at optushome.com.au>
wrote:
> Benjamin Goldenberg wrote:
> > I would like to find out the name of the graphics card of the machine
> > my program is running on. I have looked into the pyopengl module, and
> > using them to query the card, but it seems like there ought to be a
> > simpler way to find this out without setting up a glcontext. Does
> > anyone have any ideas?
>
> You need a context if you're going to ask OpenGL to tell you what the card
> is. To find out any other way would be highly platform-specific, possibly
> though looking in the /proc directory on Linux, and who-knows-where-else on
> other platforms.
>
> Also, have a look at tools/info.py in the pyglet project
> <http://www.pyglet.org/>
>
>     Richard

Thanks for the reference, but I was unable to find tools/info.py in
pyglet. What would be the full path to this file?
Thanks.




More information about the Python-list mailing list