parameters: ()
return_statement: return _appbundle
docstring: Returns True if Python is running from within an app on OSX.
      If so, assume that Python was built with Aqua Tcl/Tk rather than
      X11 Tcl/Tk.
docstring_summary: Returns True if Python is running from within an app on OSX.
      If so, assume that Python was built with Aqua Tcl/Tk rather than
      X11 Tcl/Tk.
docstring_tokens: Returns True if Python is running from within an app on OSX . If so assume that Python was built with Aqua Tcl / Tk rather than X11 Tcl / Tk .
function: def runningAsOSXApp():
      """
      Returns True if Python is running from within an app on OSX.
      If so, assume that Python was built with Aqua Tcl/Tk rather than
      X11 Tcl/Tk.
      """
      global _appbundle
      if _appbundle is None:
          _appbundle = (sys.platform == 'darwin' and '.app' in sys.executable)
      return _appbundle
function_tokens: def runningAsOSXApp ( ) : global _appbundle if _appbundle is None : _appbundle = ( sys . platform == 'darwin' and '.app' in sys . executable ) return _appbundle