winpaths.py
author Edouard Tisserant <edouard.tisserant@gmail.com>
Mon, 23 Oct 2023 10:40:39 +0200
changeset 126 a7809f76f626
parent 120 02e37d9e96a9
permissions -rw-r--r--
GitHub CI: beremiz revsion bump
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"),
120
02e37d9e96a9 Windows Installer : Python3 + 64bit
Edouard Tisserant <edouard.tisserant@gmail.com>
parents: 116
diff changeset
     8
    os.path.join(instdir, "msys2", "mingw64", "bin"),
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
     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