From 7b5b568d8ddfee2294d7d854e31afb8e5c3ab818 Mon Sep 17 00:00:00 2001 From: yeliqin666 <63091085+yeliqin666@users.noreply.github.com> Date: Sat, 8 Jun 2024 19:45:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Ddtb=E6=89=93=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run.py b/run.py index 514e197..9307280 100644 --- a/run.py +++ b/run.py @@ -1343,7 +1343,7 @@ def undtb(project, infile): call( f'dtc -@ -I dtb -O dts {dtb} -o {dts}', out=1) - open(project + os.sep + os.sep + "config" + os.sep + "dtbinfo_" + os.path.basename(infile).split(".")[0]).close() + open(project + os.sep + os.sep + "config" + os.sep + "dtbinfo_" + os.path.basename(infile).split(".")[0], 'w').close() ysuc("反编译完成!") time.sleep(1)