Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #78894 > unrolled thread

Re: how to add custom importer after the normal imports

Started byIan Kelly <ian.g.kelly@gmail.com>
First post2014-10-09 08:14 -0600
Last post2014-10-09 08:14 -0600
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: how to add custom importer after the normal imports Ian Kelly <ian.g.kelly@gmail.com> - 2014-10-09 08:14 -0600

#78894 — Re: how to add custom importer after the normal imports

FromIan Kelly <ian.g.kelly@gmail.com>
Date2014-10-09 08:14 -0600
SubjectRe: how to add custom importer after the normal imports
Message-ID<mailman.14716.1412864078.18130.python-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

On Oct 9, 2014 6:53 AM, "Gelonida N" <gelonida@gmail.com> wrote:
> I'm using Puthon 2.7 for the given project and there sys.meta_path is [].
>
> Just for fun I started Python3.3 and looked at it's meta_path, which
contained for example _frozen_importlib.PathFinder
>
> Unfortunately python 2.7 does not seem to have the package
_frozen_importlib
>
> So now the question seems to boil down to looking for the 2.7 equivalent
of python 3.3's _frozen_importlib.PathFinder

There is no equivalent. Prior to 3.3 that code was buried deeply in the
interpreter and not available to scripts. The reason for the change was to
expose more of the import machinery for exactly this kind of manipulation.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web