[Tutor] subprocess.Popen(..., cwd) and UNC paths

Alan Gauld alan.gauld at btinternet.com
Thu Apr 30 02:08:13 CEST 2015


On 30/04/15 00:12, eryksun wrote:

> the working directory, but the cmd.exe shell (being a crusty relic of
> the 1980s) does not.

Actually cmd.exe is fine with UNC paths. It's only when you
combine them with Windows /option style that it has issues
but even then putting the path in quotes will usually do
the trick.

It's the old MS-DOS COMMAND.COM that can't cope.

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos




More information about the Tutor mailing list