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(