On Mon, Jan 23, 2012 at 11:59 AM, Ian Booth <ian.bo...@canonical.com> 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.bis...@canonical.com> _______________________________________________ Mailing list: https://launchpad.net/~launchpad-dev Post to : launchpad-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~launchpad-dev More help : https://help.launchpad.net/ListHelp