G
Guest
Hi
I wonder if the additional new line charachter at the end of the standard output capture is on purpose with 'subprocess.check_output'?
If I do the same from the shell there is no extra new line (which is correct I believe):
$ x=$(cygpath C:\\); echo "_${x}_"
_/cygdrive/c_
Surely I have a workaround. I was more interested whether it was a design flaw.
Cheers
B.
I wonder if the additional new line charachter at the end of the standard output capture is on purpose with 'subprocess.check_output'?
'/cygdrive/c\n'subprocess.check_output([ 'cygpath', 'C:\\' ])
If I do the same from the shell there is no extra new line (which is correct I believe):
$ x=$(cygpath C:\\); echo "_${x}_"
_/cygdrive/c_
Surely I have a workaround. I was more interested whether it was a design flaw.
Cheers
B.