On 24/07/2014 7:26 pm, Brett Cannon wrote:
On Thu Jul 24 2014 at 2:12:20 PM, Phil Thompson
<p...@riverbankcomputing.com>
wrote:
On 24/07/2014 6:48 pm, Brett Cannon wrote:
> IOW allowing for easy patching of Python is probably the best option I
> can
> think of. Would tweaking importlib._bootstrap._install() to accept
> specified values for sys.meta_path and sys.path_hooks be enough so that
> you
> can change the call site for those functions?
My importer runs under PathFinder so it needs sys.path as well (and
doesn't need sys.meta_path).
sys.path can be set via PYTHONPATH, etc. so that shouldn't be as much
of an
issue.
I prefer to have Py_IgnoreEnvironmentFlag set.
Also I'm not clear at what point I would import my custom importer?
Phil
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com