[New-bugs-announce] [issue33617] subprocess.Popen etc do not accept os.PathLike in passed sequence on Windows
Kyle Altendorf
report at bugs.python.org
Wed May 23 10:14:04 EDT 2018
New submission from Kyle Altendorf <sda at fstab.net>:
PS C:\Users\FSTAB\Desktop\g\20\grid-tied> py -3.6 -c "import os, pathlib, subprocess; subprocess.run([pathlib.Path()])"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Program Files\Python36\lib\subprocess.py", line 403, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Program Files\Python36\lib\subprocess.py", line 707, in __init__
restore_signals, start_new_session)
File "C:\Program Files\Python36\lib\subprocess.py", line 964, in _execute_child
args = list2cmdline(args)
File "C:\Program Files\Python36\lib\subprocess.py", line 461, in list2cmdline
needquote = (" " in arg) or ("\t" in arg) or not arg
TypeError: argument of type 'WindowsPath' is not iterable
PR to follow soon.
----------
messages: 317408
nosy: altendky
priority: normal
severity: normal
status: open
title: subprocess.Popen etc do not accept os.PathLike in passed sequence on Windows
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33617>
_______________________________________
More information about the New-bugs-announce
mailing list