[issue41649] Can't pass Path like objects to subprocess api's on Windows.

Jani Mikkonen report at bugs.python.org
Fri Aug 28 04:59:48 EDT 2020


Jani Mikkonen <jani.mikkonen at gmail.com> added the comment:

@xtreak

I went thru the comments of the report you linked. It definitely looks like the discussion was related  but it didnt really fix the issue here.

https://bugs.python.org/issue31961#msg311775 without trying out, that comment actually touches the underlying issue, on windows, list2cmdline throws that typeerror because iterated argument list (output_directory in my example) is WindowsPath and thus not iterable and and testing the arg with "in" operator fails ..

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41649>
_______________________________________


More information about the Python-bugs-list mailing list