[issue14605] Make import machinery explicit

Brett Cannon report at bugs.python.org
Tue Apr 24 02:51:29 CEST 2012


Brett Cannon <brett at python.org> added the comment:

Updated patch for an explicit sys.path_hooks that simply tweaks the test_cmd_line_script tests to stop requiring an absolute path on the files and instead verifies that the relative paths are legit. It also adds warnings when None is found in sys.path_importer_cache and then subsequently just tries sys.path_hooks again. It also warnings when sys.path_hooks is empty.

----------
Added file: http://bugs.python.org/file25334/explicit_path_hooks.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14605>
_______________________________________


More information about the Python-bugs-list mailing list