Cannot mix bytes and nonbytes literals in OpenSCADUtils.py

Fixes Travis test failure: https://travis-ci.org/FreeCAD/FreeCAD/jobs/474743289#L8528
This commit is contained in:
cclauss
2019-01-03 09:45:30 +01:00
committed by wmayer
parent 51144af43e
commit 06bca8fd72

View File

@@ -70,9 +70,9 @@ def searchforopenscadexe():
return testpath
elif sys.platform == 'darwin':
ascript = (b'tell application "Finder"\n'
'POSIX path of (application file id "org.openscad.OpenSCAD"'
'as alias)\n'
'end tell')
b'POSIX path of (application file id "org.openscad.OpenSCAD"'
b'as alias)\n'
b'end tell')
p1=subprocess.Popen(['osascript','-'],stdin=subprocess.PIPE,\
stdout=subprocess.PIPE,stderr=subprocess.PIPE)
stdout,stderr = p1.communicate(ascript)