I'm writing a python project which is not going to work on PowerShell or Command Prompt, but it does work on MSYS2.
Is there any way to differentiate between MSYS2 and PowerShell/Command Prompt?
I tried os.name and sys.version, but both return same result between these 3.
Combining Abner Ham's answer with
shellinghammodule: