From edfa32da47e9e288992f78a68bb5d3ca1c863968 Mon Sep 17 00:00:00 2001 From: Paul O'Leary McCann Date: Fri, 2 Sep 2022 13:23:18 +0900 Subject: [PATCH] Add comment about shlex use on Windows --- spacy/util.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spacy/util.py b/spacy/util.py index 767f13664..f493cff85 100644 --- a/spacy/util.py +++ b/spacy/util.py @@ -965,6 +965,9 @@ def run_command( RETURNS (Optional[CompletedProcess]): The process object. """ if isinstance(command, str): + # On Windows, it's possible for the split here to be different from what + # will actually be used for execution, but it will *usually* be correct, + # and is only used in debugging output if a command failed. cmd_list = shlex.split(command, posix=True) cmd_str = command else: