Support the MSYS2 platform

It's pretty much like Cygwin as far as these things go, so
do the same things.
This commit is contained in:
Jeff Rizzo 2021-08-18 14:56:47 -07:00 committed by Marti Bolivar
parent c851664e04
commit 129e3431ae
1 changed files with 1 additions and 1 deletions

View File

@ -233,7 +233,7 @@ def _location(cfg: ConfigFile, topdir: Optional[PathType] = None) -> str:
if 'BSD' in plat:
return '/etc/westconfig'
if 'CYGWIN' in plat:
if 'CYGWIN' in plat or 'MSYS_NT' in plat:
# Cygwin can handle windows style paths, so make sure we
# return one. We don't want to use os.path.join because
# that uses '/' as separator character, and the ProgramData