At 04:59 PM 01/19/2006 +0000, Michael Twomey wrote: > I've got a work around though: If I import pkg_resources before starting > my twisted app it seems to fix the problem. (I presume that > get_platform's output is being kept somewhere, Environment's __init__ > args I think.) cheers, Michae
Yes, in general it's best to import pkg_resources sooner rather than later. :) If you're running an application using a script generated by easy_install, this is taken care of for you, as pkg_resources gets imported in order to set up sys.path with the script's requirements. _______________________________________________ Distutils-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/distutils-sig
