Tests pass on windows

This commit is contained in:
Anthony Sottile 2015-01-18 19:45:44 -08:00
parent 56e5c4eb2d
commit 143ed94500
21 changed files with 224 additions and 109 deletions

View file

@ -28,7 +28,7 @@ def _get_default_directory():
"""
return os.environ.get(
'PRE_COMMIT_HOME',
os.path.join(os.environ['HOME'], '.pre-commit'),
os.path.join(os.path.expanduser('~'), '.pre-commit'),
)