A Python 3.3 importhook to store absolute paths in __name__
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
foo.py
imppath.py
testimppath.py

README.md

abspathimporter

A Python 3.3 importhook to store absolute paths in __name__.

This is really only meant as a proof of concept; the implementation is hacky, and makes a lot of assumptions that aren't valid (in particular, that the last entry in sys.path_hooks is the hook for the normal SourceFileFinder, so we can just monkeypatch that and be done).