fix for laf intel float split not enabled if not not on a tty

This commit is contained in:
van Hauser
2020-07-13 17:57:02 +02:00
parent 6b79e1f76d
commit 4d929f80fb
5 changed files with 15 additions and 10 deletions

View File

@ -32,7 +32,8 @@ if CLANG_FORMAT_BIN is None:
p = subprocess.Popen(["clang-format-10", "--version"], stdout=subprocess.PIPE)
o, _ = p.communicate()
o = str(o, "utf-8")
o = o[len("clang-format version "):].strip()
o = re.sub(r".*ersion ", "", o)
#o = o[len("clang-format version "):].strip()
o = o[:o.find(".")]
o = int(o)
except: