[SCAD] remove unnecessary Python 3 check

we only support Python 3
This commit is contained in:
Uwe
2022-07-31 05:26:03 +02:00
parent 00f1360773
commit ae2b73567d

View File

@@ -106,8 +106,7 @@ def searchforopenscadexe():
p1 = subprocess.Popen(['which','openscad'], stdout=subprocess.PIPE)
if p1.wait() == 0:
output = p1.stdout.read()
if sys.version_info.major >= 3:
output = output.decode("utf-8")
output = output.decode("utf-8")
opath = output.split('\n')[0]
return opath