From 84b3ef6b58917093f5ac14339ac77b6245525dc8 Mon Sep 17 00:00:00 2001 From: sandilya Date: Wed, 22 Aug 2018 01:49:22 +0530 Subject: [PATCH] Fix #46123 : Remove absolute path for python --- resources/darwin/bin/code.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/darwin/bin/code.sh b/resources/darwin/bin/code.sh index 42b8bc287c5..6a9a9ec737c 100755 --- a/resources/darwin/bin/code.sh +++ b/resources/darwin/bin/code.sh @@ -3,7 +3,7 @@ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -function realpath() { /usr/bin/python -c "import os,sys; print(os.path.realpath(sys.argv[1]))" "$0"; } +function realpath() { python -c "import os,sys; print(os.path.realpath(sys.argv[1]))" "$0"; } CONTENTS="$(dirname "$(dirname "$(dirname "$(dirname "$(realpath "$0")")")")")" ELECTRON="$CONTENTS/MacOS/Electron" CLI="$CONTENTS/Resources/app/out/cli.js"