← Back to team overview

launchpad-dev team mailing list archive

Re: combo loader update

 

On Mon, Jan 23, 2012 at 11:59 AM, Ian Booth <ian.booth@xxxxxxxxxxxxx> wrote:
> to live inside the yui_console_debug() method, everything is ok again.
> So, recall I wrote above that the code which raised is inside the
> __init__ of LaunchpadConfig, and that's the import we are moving. So it
> makes sense from that perspective, but why is it claiming that sys no
> longer has an argv attribute?
>
> Oh well. Sorted now, but any clues to stop me going WTF over and over?

IIRC the sitecustomize hooks are there to setup low level stuff, such
as what encoding to use on sys.stdout. It is loaded as part of
initializing the interpreter. The stuff you expect to always be there
might not be there yet.

-- 
Stuart Bishop <stuart.bishop@xxxxxxxxxxxxx>


References