os.path.realpath does not resolve symlinks correctly in the latest update.<br />
Consider the following path:<br />
path = '/basedir/a_symlink/file'<br />
where a_symlink is a symlink to a_relative/dir/<br />
<br />
os.path.realpath(path) should give:<br />
'/somebasedir/a_relative/dir/file'<br />
<br />
but instead it gives:<br />
'/current/work/directory/a_relative/dir/file'
↧