Chris Jerdonek added the comment:

> Also, what reason to get shell name from COMSPEC? What should we do if 
> COMSPEC points to some another shell, not cmd.exe?

FWIW, the subprocess module does this (with surrounding code linked after):

comspec = os.environ.get("COMSPEC", "cmd.exe")

http://hg.python.org/cpython/file/ed091424f230/Lib/subprocess.py#l1060

----------

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

Reply via email to