diff options
| author | Meco Man <[email protected]> | 2021-03-16 17:06:03 +0800 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2021-03-16 17:06:03 +0800 |
| commit | b138082fcc3f21f441e200fedff65e6dcadcf0bb (patch) | |
| tree | c364aba11463544792284cf4351c96289e8eff5d | |
| parent | c3ffe18688a3696a486855ae98002714546bd836 (diff) | |
[python3] 部分脚本从python2语法升级到python3
| -rw-r--r-- | bsp/lpc43xx/M0/SConstruct | 4 | ||||
| -rw-r--r-- | 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)) |
