bibliopixel.util.pid_context module

bibliopixel.util.pid_context.add_arguments(parser)[source]
bibliopixel.util.pid_context.get_pid(pid_filename=None)[source]

Return the integer PID for the current bp process, or raise an exception if there is no such process or it hasn’t registered a PID.

bibliopixel.util.pid_context.pid_context(pid_filename=None)[source]

For the duration of this context manager, put the PID for this process into pid_filename, and then remove the file at the end.