3. Top Level Howdy API¶
This document describes the top level API, which defines the location of the Plex user configuration directory in a variable,
baseConfDir = ~/.config/howdy, and the resources directory in which universal resources (such as icons, fonts, style sheets, and settings for Google OAuth2 authentication) live.
the directory where Howdy user data is stored –
the directory where Howdy stores its resources.
This is a convenience method that
killsa Python execution when
Ctrl+Cis pressed. Its usage is fairly straightforward, shown in the code block below.
import signal signal.signal( signal.SIGINT, howdy.signal_handler )
This block of code at the top of the executable will capture
Ctrl+Cand then hard kill the executable by invoking
sys.exit( 0 ).
- signal (dict) – the POSIX signal to capture. See the Python 3 signal high level overview to begin to understand what POSIX signals are, and how Python can expose functionality to interact with them.
- frame – the stack frame. I don’t know what it is, or why it’s necessary in this context, when trying to capture a
Ctrl+Cand cleanly exit. It is of type