mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-08 06:04:57 +03:00
Add comment about shlex use on Windows
This commit is contained in:
parent
80c276c5f7
commit
edfa32da47
|
@ -965,6 +965,9 @@ def run_command(
|
||||||
RETURNS (Optional[CompletedProcess]): The process object.
|
RETURNS (Optional[CompletedProcess]): The process object.
|
||||||
"""
|
"""
|
||||||
if isinstance(command, str):
|
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_list = shlex.split(command, posix=True)
|
||||||
cmd_str = command
|
cmd_str = command
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user