##// END OF EJS Templates
fix symlinked /home issue for FreeBSD...
Paul Ivanov -
Show More
@@ -201,6 +201,9 b' def get_home_dir(require_writable=False):'
201 201 return py3compat.cast_unicode(root, fs_encoding)
202 202
203 203 homedir = os.path.expanduser('~')
204 # Next line will make things work even when /home/ is a symlink to
205 # /usr/home as it is on FreeBSD, for example
206 homedir = os.path.realpath(homedir)
204 207
205 208 if not _writable_dir(homedir) and os.name == 'nt':
206 209 # expanduser failed, use the registry to get the 'My Documents' folder.
General Comments 0
You need to be logged in to leave comments. Login now