This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author chris.jerdonek
Recipients asvetlov, chris.jerdonek, christian.heimes, ezio.melotti, gregory.p.smith, lyapun, neologix, pitrou, r.david.murray, tim.golden
Date 2012-11-03.16:26:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1351960015.29.0.213353377043.issue16353@psf.upfronthosting.co.za>
In-reply-to
Content
> 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
History
Date User Action Args
2012-11-03 16:26:55chris.jerdoneksetrecipients: + chris.jerdonek, gregory.p.smith, pitrou, christian.heimes, tim.golden, ezio.melotti, r.david.murray, asvetlov, neologix, lyapun
2012-11-03 16:26:55chris.jerdoneksetmessageid: <1351960015.29.0.213353377043.issue16353@psf.upfronthosting.co.za>
2012-11-03 16:26:55chris.jerdoneklinkissue16353 messages
2012-11-03 16:26:55chris.jerdonekcreate