Merge pull request #525 from anadin/master

Fix for #492 ln -s fails on mac when the link already exists
This commit is contained in:
Lubos Lenco 2018-02-23 09:42:09 +01:00 committed by GitHub
commit 7b5ef5c740
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -468,11 +468,11 @@ def kode_studio_mklink_mac(sdk_path):
if not os.path.exists(sdk_path + '/Kode Studio.app/Contents/Resources/app/extensions/kha/Kha'):
source = sdk_path + '/Kode Studio.app/Contents/Resources/app/extensions/kha/Kha'
target = sdk_path + '/Kha'
subprocess.check_call('ln -s "%s" "%s"' % (target, source), shell=True)
subprocess.check_call('ln -fs "%s" "%s"' % (target, source), shell=True)
if not os.path.exists(sdk_path + '/Kode Studio.app/Contents/Resources/app/extensions/krom/Krom'):
source = sdk_path + '/Kode Studio.app/Contents/Resources/app/extensions/krom/Krom'
target = sdk_path + '/Krom'
subprocess.check_call('ln -s "%s" "%s"' % (target, source), shell=True)
subprocess.check_call('ln -fs "%s" "%s"' % (target, source), shell=True)
def kode_studio():
sdk_path = arm.utils.get_sdk_path()