Skip to content

Commit 2a525e8

Browse files
authored
[tools] 修复rttstudio无法导入bsp的问题 (#10290)
1 parent be3cfd9 commit 2a525e8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tools/building.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# -*- coding: utf-8 -*-
12
#
23
# File : building.py
34
# This file is part of RT-Thread RTOS

tools/mkdist.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -320,21 +320,20 @@ def MkDist_Strip(program, BSP_ROOT, RTT_ROOT, env, project_name, project_path=No
320320

321321
# Output summary
322322
if removed_files:
323-
print(f"Removed {len(removed_files)} unused source files")
323+
print("Removed {} unused source files".format(len(removed_files)))
324324
log_file = os.path.join(dist_dir, 'cleanup.log')
325325
with open(log_file, 'w') as f:
326326
f.write("Removed source files:\n")
327327
f.write('\n'.join(removed_files))
328328
if removed_dirs:
329329
f.write("\n\nRemoved empty directories:\n")
330330
f.write('\n'.join(removed_dirs))
331-
print(f"Details have been written to {log_file}")
331+
print("Details have been written to {}".format(log_file))
332332
else:
333333
print("No unused source files found")
334334

335335
# Make zip package like MkDist
336336
if project_path is None:
337337
zip_dist(dist_dir, project_name)
338-
print(f"Distribution package created: {dist_dir}.zip")
339-
338+
print("Distribution package created: {}.zip".format(dist_dir))
340339
print('=> Distribution stripped successfully')

0 commit comments

Comments
 (0)