()
return hasattr(sys, "frozen")
Returns whether we are frozen via py2exe.
    This will affect how we find out where we are located.
    Reference: http://www.py2exe.org/index.cgi/WhereAmI
Returns whether we are frozen via py2exe.
    This will affect how we find out where we are located.
    Reference: http://www.py2exe.org/index.cgi/WhereAmI
Returns whether we are frozen via py2exe . This will affect how we find out where we are located . Reference : http : // www . py2exe . org / index . cgi / WhereAmI
def weAreFrozen():
    """
    Returns whether we are frozen via py2exe.
    This will affect how we find out where we are located.
    Reference: http://www.py2exe.org/index.cgi/WhereAmI
    """

    return hasattr(sys, "frozen")
def weAreFrozen ( ) : return hasattr ( sys , "frozen" )