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

2020-08-28 Thread Jani Mikkonen
Jani Mikkonen 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

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

2020-08-27 Thread Jani Mikkonen
New submission from Jani Mikkonen : Following code: ``` from pathlib import Path import os import subprocess dir_name = os.environ.get("WORKSPACE", None) or "." output_directory = Path(dir_name) / "results" res = subprocess.run(["mytest", "--output