Detect if running in Git Bash/MSys environment on Windows. Returns: True if running in Git Bash, False otherwise
()
| 29 | |
| 30 | |
| 31 | def is_git_bash() -> bool: |
| 32 | """Detect if running in Git Bash/MSys environment on Windows. |
| 33 | |
| 34 | Returns: |
| 35 | True if running in Git Bash, False otherwise |
| 36 | """ |
| 37 | return platform.system() == "Windows" and "MSYSTEM" in os.environ |
| 38 | |
| 39 | |
| 40 | def should_use_cmd_runner() -> bool: |
no outgoing calls
no test coverage detected