[mythtv-users] running python scripts on OS X against mythtv database?
Bill Meek
keemllib at gmail.com
Sat Nov 24 21:53:39 UTC 2018
On 11/24/18 3:26 PM, James Abernathy wrote:
> I have some scripts that work on my Ubuntu systems that print data from the mythtv backend and database.
>
> I have a Macbook Pro that I run Mythfrontend and XQuartz for maintenance of the backend. I’d like to run some python scripts.
>
> How do I link up all the modules so I don’t get errors like:
>
> File "./find_recording_inputs.py", line 13, in <module>
> from MythTV import exceptions, MythBE
> ImportError: No module named MythTV
If you know where the MythTV Python bindings are installed, then you can
do this:
export PYTHONPATH=/directory/where/the/bindings/are/installed
This would display the directories in use:
echo -e "import sys\nfor p in sys.path:\n\tprint p" | python
--
Bill
More information about the mythtv-users
mailing list