You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ja...@apache.org on 2022/08/04 06:57:29 UTC

[mynewt-nimble] 02/02: tools/hci_throughput: util path fix

This is an automated email from the ASF dual-hosted git repository.

janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git

commit c6444face72d5fc2fa58d0a68793b73bc18e05a3
Author: Jakub <ja...@codecoup.pl>
AuthorDate: Wed Aug 3 17:40:02 2022 +0200

    tools/hci_throughput: util path fix
---
 tools/hci_throughput/util.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/hci_throughput/util.py b/tools/hci_throughput/util.py
index 472057b1..96bfd908 100644
--- a/tools/hci_throughput/util.py
+++ b/tools/hci_throughput/util.py
@@ -21,6 +21,7 @@ import logging
 import shutil
 import time
 import os
+from pathlib import Path
 
 
 def create_test_directory():
@@ -50,7 +51,7 @@ def configure_logging(log_filename, clear_log_file=True):
 
 def copy_config_files_to_test_directory(files: list, test_directory: str):
     for file in files:
-        shutil.copy(file, test_directory + "/" + file)
+        shutil.copy(file, test_directory + "/" + Path(file).name)
 
 
 def copy_log_files_to_test_directory(dir: str):