Skip to content

Commit a2ab0b9

Browse files
committed
[bsp]修复报错
1 parent a13821f commit a2ab0b9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bsp/allwinner_tina/rtconfig.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
PLATFORM = 'gcc'
1818
EXEC_PATH = r'E:\work\env\tools\gnu_gcc\arm_gcc\mingw\bin'
1919
else:
20-
print 'Please make sure your toolchains is GNU GCC!'
20+
print('Please make sure your toolchains is GNU GCC!')
2121
exit(0)
2222

2323
if os.getenv('RTT_EXEC_PATH'):

bsp/lpc43xx/M4/SConstruct

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ if rtconfig.CROSS_TOOL == 'gcc':
3030
print('build M0 code first')
3131
if sys.platform.startswith('linux'):
3232
import glob
33-
ocwd = os.getcwdu()
33+
ocwd = os.getcwd()
3434
os.chdir('../M0')
3535
res = os.system('scons')
3636
if res:
@@ -41,7 +41,7 @@ if rtconfig.CROSS_TOOL == 'gcc':
4141
os.chdir(ocwd)
4242
else:
4343
# Assume Windows.
44-
ocwd = os.getcwdu()
44+
ocwd = os.getcwd()
4545
os.chdir('..\M0')
4646
os.system('scons.bat')
4747
os.chdir(ocwd)

0 commit comments

Comments
 (0)