diff --git a/CHANGELOG b/CHANGELOG index 017201767..e4fb2189e 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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 ================================================== diff --git a/py/_path/local.py b/py/_path/local.py index 760575aea..156a88934 100644 --- a/py/_path/local.py +++ b/py/_path/local.py @@ -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)