mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-12 16:01:27 +08:00
change: log current working directory when debugtalk.py not found
This commit is contained in:
@@ -290,8 +290,11 @@ def locate_file(start_path: Text, file_name: Text) -> Text:
|
|||||||
return os.path.abspath(file_path)
|
return os.path.abspath(file_path)
|
||||||
|
|
||||||
# current working directory
|
# current working directory
|
||||||
if os.path.abspath(start_dir_path) == os.getcwd():
|
cwd = os.getcwd()
|
||||||
raise exceptions.FileNotFound(f"{file_name} not found in {start_path}")
|
if os.path.abspath(start_dir_path) == cwd:
|
||||||
|
raise exceptions.FileNotFound(
|
||||||
|
f"{file_name} not found for {start_path}\ncurrent working directory: {cwd}"
|
||||||
|
)
|
||||||
|
|
||||||
# system root dir
|
# system root dir
|
||||||
# Windows, e.g. 'E:\\'
|
# Windows, e.g. 'E:\\'
|
||||||
|
|||||||
Reference in New Issue
Block a user