From b138082fcc3f21f441e200fedff65e6dcadcf0bb Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Tue, 16 Mar 2021 17:06:03 +0800 Subject: [PATCH] =?UTF-8?q?[python3]=20=E9=83=A8=E5=88=86=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E4=BB=8Epython2=E8=AF=AD=E6=B3=95=E5=8D=87=E7=BA=A7?= =?UTF-8?q?=E5=88=B0python3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/lpc43xx/M0/SConstruct | 4 ++-- tools/mkromfs.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bsp/lpc43xx/M0/SConstruct b/bsp/lpc43xx/M0/SConstruct index 3a52eb9a43..145b29d70f 100644 --- a/bsp/lpc43xx/M0/SConstruct +++ b/bsp/lpc43xx/M0/SConstruct @@ -35,12 +35,12 @@ if rtconfig.CROSS_TOOL == 'gcc': if sys.platform.startswith('linux'): import glob - ocwd = os.getcwdu() + ocwd = os.getcwd() res = os.system('cd ../Libraries/; find -name \*.o -exec rm {} \;') os.chdir(ocwd) else: # Assume Windows. - ocwd = os.getcwdu() + ocwd = os.getcwd() print('TODO: remove the object files in ../Libraries') os.chdir(ocwd) diff --git a/tools/mkromfs.py b/tools/mkromfs.py index 5371106987..120053be40 100644 --- a/tools/mkromfs.py +++ b/tools/mkromfs.py @@ -85,7 +85,7 @@ class Folder(object): # TODO: take care of the unicode names for ent in os.listdir(u'.'): if os.path.isdir(ent): - cwd = os.getcwdu() + cwd = os.getcwd() d = Folder(ent) # depth-first os.chdir(os.path.join(cwd, ent))