Skip to content

Commit e9e0bc4

Browse files
committed
fix: make HOME directory work on Windows
Use `os.path.expanduser` instead of HOME environment variable.
1 parent 328a8fd commit e9e0bc4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nipype/utils/config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818

1919
from ..external import portalocker
2020

21-
homedir = os.environ['HOME']
21+
# Get home directory in platform-agnostic way
22+
homedir = os.path.expanduser('~')
2223
default_cfg = """
2324
[logging]
2425
workflow_level = INFO

0 commit comments

Comments
 (0)