Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dill/_dill.py
Original file line number Diff line number Diff line change
Expand Up @@ -1283,6 +1283,7 @@ def save_module(pickler, obj):
builtin_mod = any([obj.__file__.startswith(os.path.normpath(getattr(sys, name)))
for name in names if hasattr(sys, name)])
builtin_mod = builtin_mod or 'site-packages' in obj.__file__
builtin_mod = builtin_mod or any(obj.__file__.startswith(os.path.normpath(ppath)) for ppath in sys.path)
else:
builtin_mod = True
if obj.__name__ not in ("builtins", "dill") \
Expand Down