1 new changeset in py:

http://bitbucket.org/hpk42/py/changeset/39007ef7bda6/
changeset:   r1997:39007ef7bda6
user:        hpk
date:        2011-01-14 13:52:07
summary:     fix issue2 on windows use PATHEXT for the list of extensions to 
try in order to to find binaries
affected #:  2 files (145 bytes)

--- a/CHANGELOG Fri Jan 14 00:05:36 2011 +0100
+++ b/CHANGELOG Fri Jan 14 13:52:07 2011 +0100
@@ -3,6 +3,9 @@
 
 - fix issue1 - py.error.* classes to be pickleable
 
+- fix issue2 - on windows32 use PATHEXT as the list of potential
+  extensions to find find binaries with py.path.local.sysfind(commandname)
+
 - fix (pytest-) issue10 and refine assertion reinterpretation
   to avoid breaking if the __nonzero__ of an object fails
 


--- a/py/_path/local.py Fri Jan 14 00:05:36 2011 +0100
+++ b/py/_path/local.py Fri Jan 14 13:52:07 2011 +0100
@@ -599,7 +599,7 @@
                 else:
                     paths = [re.sub('%SystemRoot%', systemroot, path)
                              for path in paths]
-                tryadd = '', '.exe', '.com', '.bat' # XXX add more?
+                tryadd = [''] + os.environ['PATHEXT'].split(os.pathsep)
             else:
                 paths = py.std.os.environ['PATH'].split(':')
                 tryadd = ('',)

Repository URL: https://bitbucket.org/hpk42/py/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
_______________________________________________
py-svn mailing list
py-svn@codespeak.net
http://codespeak.net/mailman/listinfo/py-svn

Reply via email to