parameters: ()
return_statement: return (hasattr(sys, "frozen") or # new py2exe
              hasattr(sys, "importers") or # old py2exe
              imp.is_frozen("__main__"))
docstring: Returns True when running as a py2exe executable.
docstring_summary: Returns True when running as a py2exe executable.
docstring_tokens: Returns True when running as a py2exe executable .
function: def main_is_frozen():
      """Returns True when running as a py2exe executable."""
      return (hasattr(sys, "frozen") or # new py2exe
              hasattr(sys, "importers") or # old py2exe
              imp.is_frozen("__main__"))
function_tokens: def main_is_frozen ( ) : return ( hasattr ( sys , "frozen" ) or # new py2exe hasattr ( sys , "importers" ) or # old py2exe imp . is_frozen ( "__main__" ) )