Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve symlinks when determining if module is builtin (#419)
To determine whether a module is builtin, Dill compares `mod.__file__` against `sys.base_prefix`. The former will have symlinks resolved, while the latter will not. This causes builtin module detection to fail in Python installations where `sys.base_prefix` involves symlinks, like Homebrew-managed Python on macOS. This commit resolves the issue by resolving symlinks in `sys.base_prefix` before comparing module paths against it. Fix #417.
- Loading branch information