[py-svn] r64232 - py/dist/py/path/local

afa at codespeak.net afa at codespeak.net
Fri Apr 17 11:52:15 CEST 2009


Author: afa
Date: Fri Apr 17 11:52:15 2009
New Revision: 64232

Modified:
   py/dist/py/path/local/local.py
Log:
On Windows, have sysfind() also look at the current directory, if '.' is not in the PATH.
This better matches what you get from the command prompt (or with os.system()),
and should fix the buildbot.


Modified: py/dist/py/path/local/local.py
==============================================================================
--- py/dist/py/path/local/local.py	(original)
+++ py/dist/py/path/local/local.py	Fri Apr 17 11:52:15 2009
@@ -514,6 +514,8 @@
         else:
             if iswin32:
                 paths = py.std.os.environ['Path'].split(';')
+                if '' not in paths and '.' not in paths:
+                    paths.append('.')
                 try:
                     systemroot = os.environ['SYSTEMROOT']
                 except KeyError:



More information about the pytest-commit mailing list