Brian Curtin <cur...@acm.org> added the comment:

Whoops, sorry. Here is the change as requested. It reverts to the old way when 
needed, which hardcodes the version to VER_NT_WORKSTATION as it effectively 
used to. 


Outside of a hackish and incredibly slow method, I have no idea how to figure 
out workstation vs. server when OSVERSIONINFOEX isn't available. The slow hack 
would be to use a subprocess to call "systeminfo" and parse the results, but 
that would take 4-5 seconds at best.

I'll try to get access to a Server 2008 box again after PyCon and see if 
there's anything I'm missing when trying to identify it.

----------
stage: test needed -> patch review
Added file: http://bugs.python.org/file16343/issue7863_trunk_v2.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue7863>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to