Plex Media Center for OS X Leopard

5.4.2. Helper — Runs external helper programs

Using the Helper module, helper programs can be started and managed from within a plug-in. Helper programs are small utilities that perform a specific task, and return data to the plug-in. These programs must be stored in the Contents/Helpers directory. See the Bundles section for more information.

This module defines the following functions:

Helper.Run(helper, *args)

Runs the named helper program and returns its output.

Parameters:
  • helper (str) – The name of the helper program
  • args – A list of arguments to pass to the helper program
Returns:

The output of the helper program when called with the given arguments

Return type:

str

Previous topic

5.4.1. Thread — Multithreading

Next topic

5.4.3. Client — Information about the client accessing a plug-in