fix windows homedir detection

--HG--
branch : trunk
This commit is contained in:
holger krekel 2010-07-08 12:35:43 +02:00
parent 1ffe0e7b82
commit e98b15eb67
2 changed files with 2 additions and 1 deletions

View File

@ -72,6 +72,7 @@ Bug fixes / Maintenance
- perform distributed testing related reporting in the xdist-plugin
rather than having dist-related code in the generic py.test
distribution
- fix homedir detection on Windows
Changes between 1.3.0 and 1.3.1
==================================================

View File

@ -618,7 +618,7 @@ class LocalPath(FSBase):
try:
x = os.environ['HOME']
except KeyError:
x = os.environ['HOMEPATH']
x = os.environ["HOMEDRIVE"] + os.environ['HOMEPATH']
return cls(x)
_gethomedir = classmethod(_gethomedir)