author | etisserant <edouard.tisserant@gmail.com> |
Fri, 03 Mar 2023 19:17:30 +0100 | |
changeset 118 | 99fad4ed7ed4 |
parent 116 | dc462ee1c0f5 |
child 120 | 02e37d9e96a9 |
permissions | -rw-r--r-- |
116
dc462ee1c0f5
Windows installer: add winpaths.py to extend %PATH% so that build find msys2 binaries including Make.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
1 |
import os |
dc462ee1c0f5
Windows installer: add winpaths.py to extend %PATH% so that build find msys2 binaries including Make.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
2 |
|
dc462ee1c0f5
Windows installer: add winpaths.py to extend %PATH% so that build find msys2 binaries including Make.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
3 |
PATH = os.environ["PATH"] |
dc462ee1c0f5
Windows installer: add winpaths.py to extend %PATH% so that build find msys2 binaries including Make.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
4 |
instdir = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) |
dc462ee1c0f5
Windows installer: add winpaths.py to extend %PATH% so that build find msys2 binaries including Make.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
5 |
os.environ["PATH"] = ';'.join([ |
dc462ee1c0f5
Windows installer: add winpaths.py to extend %PATH% so that build find msys2 binaries including Make.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
6 |
os.path.join(instdir, "msys2", "bin"), |
dc462ee1c0f5
Windows installer: add winpaths.py to extend %PATH% so that build find msys2 binaries including Make.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
7 |
os.path.join(instdir, "msys2", "usr", "bin"), |
dc462ee1c0f5
Windows installer: add winpaths.py to extend %PATH% so that build find msys2 binaries including Make.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
8 |
os.path.join(instdir, "msys2", "mingw32", "bin"), |
dc462ee1c0f5
Windows installer: add winpaths.py to extend %PATH% so that build find msys2 binaries including Make.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
9 |
PATH |
dc462ee1c0f5
Windows installer: add winpaths.py to extend %PATH% so that build find msys2 binaries including Make.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
10 |
]) |
dc462ee1c0f5
Windows installer: add winpaths.py to extend %PATH% so that build find msys2 binaries including Make.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
11 |