Ed Leafe wrote:

> Log:
> Added exception for web update checking for frozen apps when it is the 
> runtime engine.
> 
> +                             mainProg = inspect.stack()[-1][1]
> +                             update = (mainProg != "daborun.py")

It's been a long day, but I'm trying to figure out why it would by != 
and not ==. If the mainprog is not 'daborun.py', we want to set update 
to False (but we don't want to flip it to True in case it was already 
flipped to False above[1]).

I think this is better:

"""
mainProg = inspect.stack()[-1][1]
if mainProg != "daborun.py":
        update = False
"""

[1] Because we may add other checks in the future. If any of the checks 
set update to False, update should stay False.

-- 
pkm ~ http://paulmcnett.com


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/dabo-dev/[EMAIL PROTECTED]

Reply via email to