board_inspector/legacy: fix a copy destination error

Tracked-On: #5922
Signed-off-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
Junjie Mao 2021-05-12 09:14:34 +08:00 committed by wenlingz
parent bd4ddbd31d
commit e6e61a4979
1 changed files with 1 additions and 1 deletions

View File

@ -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')))