Remove various sys.version_info >= 3 checks

This commit is contained in:
Chris Hennes
2022-11-07 21:52:24 -06:00
committed by Uwe
parent d02bb1b7ea
commit fa8e0a6865
3 changed files with 3 additions and 11 deletions

View File

@@ -95,7 +95,7 @@ def searchforopenscadexe():
stdout=subprocess.PIPE,stderr=subprocess.PIPE)
stdout, stderr = p1.communicate(ascript)
if p1.returncode == 0:
opathl = stdout.decode().split('\n') if sys.version_info.major >= 3 else stdout.split('\n')
opathl = stdout.decode().split('\n')
if len(opathl) >= 1:
return opathl[0]+'Contents/MacOS/OpenSCAD'
#test the default path