diff options
-rwxr-xr-x | giscanner/scannermain.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/giscanner/scannermain.py b/giscanner/scannermain.py index ac340305..c3706f20 100755 --- a/giscanner/scannermain.py +++ b/giscanner/scannermain.py @@ -199,7 +199,8 @@ match the namespace prefix.""") group = get_preprocessor_option_group(parser) parser.add_option_group(group) - if os.environ.get('MSYSTEM') == 'MINGW32': + msystemenv = os.environ.get('MSYSTEM') + if msystemenv and msystemenv.startswith('MINGW'): group = get_windows_option_group(parser) parser.add_option_group(group) |