blob: ff826e4fae71aff7caffbfe1d9314331c9f19090 [file] [log] [blame]
Brett Cannon5abdc932009-01-22 22:43:07 +00001"""The machinery of importlib: finders, loaders, hooks, etc."""
2
Brett Cannoncb66eb02012-05-11 12:58:42 -04003import _imp
4
5from ._bootstrap import (SOURCE_SUFFIXES, DEBUG_BYTECODE_SUFFIXES,
Brett Cannonac9f2f32012-08-10 13:47:54 -04006 OPTIMIZED_BYTECODE_SUFFIXES, BYTECODE_SUFFIXES,
7 EXTENSION_SUFFIXES)
Brett Cannon5abdc932009-01-22 22:43:07 +00008from ._bootstrap import BuiltinImporter
9from ._bootstrap import FrozenImporter
Nick Coghlanff794862012-08-02 21:45:24 +100010from ._bootstrap import WindowsRegistryFinder
Brett Cannonfa3d1fc2009-02-05 02:52:57 +000011from ._bootstrap import PathFinder
Brett Cannon938d44d2012-04-22 19:58:33 -040012from ._bootstrap import FileFinder
13from ._bootstrap import SourceFileLoader
Marc-Andre Lemburg4fe29c92012-04-25 02:31:37 +020014from ._bootstrap import SourcelessFileLoader
Brett Cannon938d44d2012-04-22 19:58:33 -040015from ._bootstrap import ExtensionFileLoader
Brett Cannoncb66eb02012-05-11 12:58:42 -040016
Nick Coghlan76e07702012-07-18 23:14:57 +100017
18def all_suffixes():
19 """Returns a list of all recognized module suffixes for this process"""
20 return SOURCE_SUFFIXES + BYTECODE_SUFFIXES + EXTENSION_SUFFIXES