Open manimax3 opened 3 years ago
@manimax3 Thanks! I updated it to use realpath
whenever that's available, falling back to readlink
otherwise. This is available in the latest versions of the git repository. Let me know if you know of a better approach (readlink -f
doesn't work on macOS).
In my setup I had
.nbrc
symlinked todotfiles/nbrc
and not to an absolute path like~/dotfiles/nbrc
. But nb seems to read the symlink path withreadlink
and this returns an invalid path if the current working dir is not~
.Is there any reason why a symbolic link needs to be resolved like that? The fix on the user side is obviously easy (just change to an absolute path) but the issue was weird to debug since nb just used the default config and worked fine in the home dir.