Am 03.02.2011 11:40, schrieb nap: > Yes, I don't know yet, but this is not a test env where I launch this, > but my prod, so it will be hard to crash/test this :) But then IMHO you should fix your prod instead of putting a hack into the code. > > > Further: I can not imagine why the __main__ module could not have a > __file__ attribute. (At least if __main__ is a Python script.) > > Yes, but it happened on Windows when you call the subprocess module > that launch again another process, and do not have such an attribute > (yes, nasty bug :) ).
What? Are you kidding? subprocess starts a new python interpreter which runs a new main script which should have a __file__ attribute then. I do not see, why this should not happen? Did you file a bugreport at python.org? -- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (univ.), CISSP, CSSLP Goebel Consult Spezialist für IT-Sicherheit in komplexen Umgebungen http://www.goebel-consult.de Monatliche Kolumne: http://www.cissp-gefluester.de/ Goebel Consult mit Mitglied bei http://www.7-it.de
smime.p7s
Description: S/MIME Cryptographic Signature
------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________ Shinken-devel mailing list Shinken-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/shinken-devel