Re: how to add custom importer after the normal imports

2014-10-10 Thread Gelonida N
On 10/09/2014 04:14 PM, Ian Kelly wrote: I have a use case where I would like to add a custom importer *AFTER* all other import methods have failed. On Oct 9, 2014 6:53 AM, "Gelonida N" mailto:gelon...@gmail.com>> wrote: > I'm using Puthon 2.7 for the given project and there sys.meta_path is

Re: how to add custom importer after the normal imports

2014-10-09 Thread Ian Kelly
On Oct 9, 2014 6:53 AM, "Gelonida N" 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

Re: how to add custom importer after the normal imports

2014-10-09 Thread Gelonida N
On 10/9/2014 12:44 AM, Ian Kelly wrote: On Wed, Oct 8, 2014 at 4:53 AM, Gelonida N wrote: Hi, I just read about sys.meta_path, which allows to install custom importers *BEFORE* the default importers. However I have a use case where I would like to add a custom importer *AFTER* all other impo

Re: how to add custom importer after the normal imports

2014-10-08 Thread Ian Kelly
On Wed, Oct 8, 2014 at 4:53 AM, Gelonida N wrote: > Hi, > > > I just read about sys.meta_path, which allows to install custom importers > *BEFORE* the default importers. > > However I have a use case where I would like to add a custom importer > *AFTER* all other import methods have failed. > > Do

how to add custom importer after the normal imports

2014-10-08 Thread Gelonida N
Hi, I just read about sys.meta_path, which allows to install custom importers *BEFORE* the default importers. However I have a use case where I would like to add a custom importer *AFTER* all other import methods have failed. Does anybody know how to do this. One way of implementing this