This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author iki
Recipients Christophe Simonis, Iztok.Kavkler, ajaksu2, andybuckley, brian.curtin, christian.heimes, edemaine, eric.araujo, iki, loewis, meatballhat, michael.foord, pitrou, r.david.murray, sandro.tosi, schmir, tarek, tleeuwenburg@gmail.com, tmick, wrstlprmpft
Date 2011-01-03.20:27:40
SpamBayes Score 5.904375e-10
Marked as misclassified No
Message-id <1294086464.11.0.68157135454.issue444582@psf.upfronthosting.co.za>
In-reply-to
Content
Hello All,

sorry for lack of communication recently, I'd alos like to see it in 3.2 instead of 3.3, but my time is not as scalable as I wish and I can't run on clouds yet .)

I like Trent's module and especially its usefullness via the commandline. I'm also happy about learning on "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\" key, and did reimplement it in my module (with optional static=True parameter to cache the key and parsed path instead of querying and parsing them on each run).

For inclusion in shutil, I'd imho prefer the interface chosen here, ie. which_files() returns generator, which() returns first match, or raises IOError(errno.ENOENT), but that's my opinion only. There's also adapted the default extension list to match the given Windows version, which helps resembling the real command execution behavior.

The escape+quote chars in path are an interesting problem. I wrote a simple test for them to find out the behavior on Windows XP/7 and Linux, and will do the correct implementation and tests later this week.
History
Date User Action Args
2011-01-03 20:27:44ikisetrecipients: + iki, loewis, tmick, edemaine, pitrou, wrstlprmpft, christian.heimes, ajaksu2, schmir, tarek, eric.araujo, Christophe Simonis, andybuckley, r.david.murray, tleeuwenburg@gmail.com, michael.foord, brian.curtin, meatballhat, sandro.tosi, Iztok.Kavkler
2011-01-03 20:27:44ikisetmessageid: <1294086464.11.0.68157135454.issue444582@psf.upfronthosting.co.za>
2011-01-03 20:27:41ikilinkissue444582 messages
2011-01-03 20:27:40ikicreate