From 06bca8fd72735dd38f17a4e7195afb03ff39e62e Mon Sep 17 00:00:00 2001 From: cclauss Date: Thu, 3 Jan 2019 09:45:30 +0100 Subject: [PATCH] Cannot mix bytes and nonbytes literals in OpenSCADUtils.py Fixes Travis test failure: https://travis-ci.org/FreeCAD/FreeCAD/jobs/474743289#L8528 --- src/Mod/OpenSCAD/OpenSCADUtils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Mod/OpenSCAD/OpenSCADUtils.py b/src/Mod/OpenSCAD/OpenSCADUtils.py index 8f7b50455f..b3b8f10ce0 100644 --- a/src/Mod/OpenSCAD/OpenSCADUtils.py +++ b/src/Mod/OpenSCAD/OpenSCADUtils.py @@ -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)