winpaths.py
author Edouard Tisserant <edouard.tisserant@gmail.com>
Mon, 13 Feb 2023 22:12:51 +0100
changeset 117 3992523a7e6e
parent 116 dc462ee1c0f5
child 120 02e37d9e96a9
permissions -rw-r--r--
revision 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"),
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