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.
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.
subprocess.*functions have arguments for environment variables!$SHELLgives you the login shell, not the current shell. Why not specify a specific shell in the Makefile, or use#!?