def _test_dir():
 imputil.ImportManager().install()
 path = sys.path[:]
 path.reverse()
 for d in path:
  sys.path.insert(0, DirectoryImporter(d))
 sys.path.insert(0, imputil.BuiltinImporter())

def _test_dir ( ) : imputil . ImportManager ( ) . install ( ) path = sys . path [ : ] path . reverse ( ) for d in path : sys . path . insert ( 0 , DirectoryImporter ( d ) ) sys . path . insert ( 0 , imputil . BuiltinImporter ( ) )
debug/test function to create directoryimporters from sys .