board_inspector/legacy: fix a copy destination error
@@ -657,5 +657,5 @@ def generate_info(board_file):
# get the PTCT table from native environment
out_dir = os.path.dirname(board_file)
if os.path.isfile(SYS_PATH[1] + 'PTCT'):
- shutil.copy(SYS_PATH[1] + 'PTCT', out_dir)
+ shutil.copy(SYS_PATH[1] + 'PTCT', out_dir if out_dir != "" else "./")
print("PTCT table has been saved to {} successfully!".format(os.path.join(out_dir, 'PTCT')))
