On 24/07/2014 7:26 pm, Brett Cannon wrote: > On Thu Jul 24 2014 at 2:12:20 PM, Phil Thompson > <phil at 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
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4