Merge pull request #4434 from mysterywolf/ci

[CI]修复脚本语法错误,解决CI报警
This commit is contained in:
Bernard Xiong 2021-03-10 17:04:27 +08:00 committed by GitHub
commit 3883572130
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ if CROSS_TOOL == 'gcc':
PLATFORM = 'gcc'
EXEC_PATH = r'/usr/bin'
else:
print 'Please make sure your toolchains is GNU GCC!'
print ('Please make sure your toolchains is GNU GCC!')
exit(0)
if os.getenv('RTT_EXEC_PATH'):

View File

@ -30,7 +30,7 @@ if rtconfig.CROSS_TOOL == 'gcc':
print('build M0 code first')
if sys.platform.startswith('linux'):
import glob
ocwd = os.getcwdu()
ocwd = os.getcwd()
os.chdir('../M0')
res = os.system('scons')
if res:
@ -41,7 +41,7 @@ if rtconfig.CROSS_TOOL == 'gcc':
os.chdir(ocwd)
else:
# Assume Windows.
ocwd = os.getcwdu()
ocwd = os.getcwd()
os.chdir('..\M0')
os.system('scons.bat')
os.chdir(ocwd)