Skip to content

Commit

Permalink
properly handle unicode characters in home dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
vit-tucek committed Jan 23, 2019
1 parent f1e18b8 commit 47c4102
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jupyter_core/paths.py
Expand Up @@ -12,6 +12,7 @@
import os
import sys
import tempfile
from ipython_genutils import py3compat

pjoin = os.path.join

Expand All @@ -21,7 +22,7 @@ def get_home_dir():
homedir = os.path.expanduser('~')
# Next line will make things work even when /home/ is a symlink to
# /usr/home as it is on FreeBSD, for example
homedir = os.path.realpath(homedir)
home = py3compat.str_to_unicode(os.path.expanduser('~'), encoding=sys.getfilesystemencoding())
return homedir

_dtemps = {}
Expand Down

0 comments on commit 47c4102

Please sign in to comment.