forked from facebookresearch/hydra
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
this is a reimplementation of the pydoc.locate function. That function would attempt to load a module from beginning to end and if any link in the chain did not load properly then it would fail. The reimplemented function searches for the module to load from the end of the path to the beginning. Additionally, this reimplementation will raise exceptions instead of returning None if the path cannot be located. Signed-off-by: David Pollack <david@da3.net>
- Loading branch information
Showing
2 changed files
with
69 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters