From 44d49d7fab4e04675c2d67207d4532f8484ff059 Mon Sep 17 00:00:00 2001 From: minggo Date: Mon, 12 Jun 2017 14:13:07 +0800 Subject: [PATCH] environment path variable can include blank space (#17919) --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 9636b826c3..2502cf1a49 100755 --- a/setup.py +++ b/setup.py @@ -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(