Brett Cannon <br...@python.org> added the comment:

So basically if you are running in a checkout, grab the source file and compile 
it manually since its location is essentially hard-coded and thus you don't 
need to care about sys.path and all the other stuff required to do an import, 
while using the frozen code for when you are running an installed module since 
you would otherwise need to do the search for importlib's source file to do a 
load at startup properly.

That's an interesting idea. How do we currently tell that the interpreter is 
running in a checkout? Is that exposed in any way to Python code?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14657>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to