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 #-----------------------------------------------------------------------------