From 9f2fa3de54f08042ee9efe9f09b50072a000a8c2 Mon Sep 17 00:00:00 2001 From: VictorMiasnikov Date: Tue, 21 Jun 2022 16:30:10 +0300 Subject: [PATCH] Pylib.py with fix for I386_MINGW and AMD64_MINGW --- scripts/python/pylib.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/python/pylib.py b/scripts/python/pylib.py index e6e45000d2..11367a77d3 100755 --- a/scripts/python/pylib.py +++ b/scripts/python/pylib.py @@ -581,11 +581,11 @@ def GetVersion(Key): Host = None print("A working cm3 is required. Checking.") -print(CM3 + " -version | fgrep host:") +print(CM3 + " -version | fgrep target:") for a in os.popen(CM3 + " -version 2>" + DevNull): - if StringContains(a, "host:"): + if StringContains(a, "target:"): print(a) - Host = a.replace("\r", "").replace("\n", "").replace(" ", "").replace("host:", "") + Host = a.replace("\r", "").replace("\n", "").replace(" ", "").replace("target:", "") break #-----------------------------------------------------------------------------