environment path variable can include blank space (#17919)

This commit is contained in:
minggo 2017-06-12 14:13:07 +08:00 committed by GitHub
parent 5c9ac37f50
commit 44d49d7fab
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ class SetEnvVar(object):
file = open(self.file_used_for_setup, 'a')
file.write('\n# Add environment variable %s for cocos2d-x\n' % key)
file.write('export %s=%s\n' % (key, value))
file.write('export %s="%s"\n' % (key, value))
file.write('export PATH=$%s:$PATH\n' % key)
if key == ANDROID_SDK_ROOT:
file.write(