[issue14605] Make import machinery explicit
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>
More information about the Python-bugs-list