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 <[email protected]>
<http://bugs.python.org/issue16353>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com