[issue16353] add function to os module for getting path to default shell

Serhiy Storchaka report at bugs.python.org
Fri Aug 1 11:31:16 CEST 2014


Serhiy Storchaka added the comment:

Should it be function? Why not use just a variable initialized at import time? The path to the default shell shouldn't change during the time of program execution.

if sys.platform == 'win32':
    default_shell = 'cmd.exe'
else:
    default_shell = '/bin/sh'

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16353>
_______________________________________


More information about the Python-bugs-list mailing list