summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2021-03-17 21:26:11 +0800
committerGitHub <[email protected]>2021-03-17 21:26:11 +0800
commit6de81af04cbef6825f1d0d9921bacc59df2c7189 (patch)
tree5fc1eb12ccfae89d567d3613f0b67e7134d49a12 /tools
parent6a80bcef1fdde8f85e4f1b314b91fe20a91076d4 (diff)
parentb138082fcc3f21f441e200fedff65e6dcadcf0bb (diff)
Merge pull request #4466 from mysterywolf/python3
[python3] 部分脚本从python2语法升级到python3
Diffstat (limited to 'tools')
-rw-r--r--tools/mkromfs.py2
1 files changed, 1 insertions, 1 deletions
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))