title: Getting the current shell type from python script
body: <p>My script sets some environment varrible, to be used by the Makefiles, so since every shell, bash(export to set varriable) and tcsh(setenv), I need to get the correct shell type, from where we have run the python, I have tried using $SHELL varrriable, but it always given me sh as my shell.</p>
  
  <p>Is there a way, I can get the right shell type from a python script or will it always output "SH" as the $SHELL variable. </p>