On Thu, Feb 3, 2011 at 12:02 PM, Hartmut Goebel
<h.goe...@goebel-consult.de>wrote:
> 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?
>
I don't have time for this :)
>
> 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?
>
> I don't know if it start a new interpreter, but under Windows with the sub
process this attribute was just missing for the new process. There were
still a ticket about it, so no I didn't open a new one and just bypass this.
Jean
> --
> 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
>
>
>
>
> ------------------------------------------------------------------------------
> 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
>
>
------------------------------------------------------------------------------
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