◐ Shell
clean mode source ↗

Message 224477 - Python tracker

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'