# HG changeset patch # User Edouard Tisserant # Date 1396100988 -3600 # Node ID 49441045b1928490d49067c8f17b64e2424c60ca # Parent 611fded24ce4beffe5f1702f0a6e8a249d68873b On windows, prepend CWD to PATH before invoking Generic target make command diff -r 611fded24ce4 -r 49441045b192 targets/toolchain_makefile.py --- a/targets/toolchain_makefile.py Thu Mar 27 10:06:30 2014 +0100 +++ b/targets/toolchain_makefile.py Sat Mar 29 14:49:48 2014 +0100 @@ -6,6 +6,15 @@ includes_re = re.compile('\s*#include\s*["<]([^">]*)[">].*') + +if os.name == 'nt': + # on windows, desktop shortcut launches Beremiz.py + # with working dir set to mingw/bin. + # then we prefix CWD to PATH in order to ensure that + # commands invoked from Makefiles will first resolve + # to here. + os.environ["PATH"] = os.getcwd()+';'+os.environ["PATH"] + class toolchain_makefile(): def __init__(self, CTRInstance): self.CTRInstance = CTRInstance