[mythtv] Using the python bindings
Ian Barton
lists at manor-farm.org
Tue Mar 11 12:39:19 UTC 2008
I have written a jabber bot to return various bits of info about my
backend. It has been suggested that I should use the python bindings,
rather than try to access the database directly.
Can someone provide me with a bit of code that shows how to create an
instance of the MyhtTV class? This is my first python program, so please
excuse my stupidity:)
If I write something like:
try:
from MythTV import MythDB
mythdb = MythDB()
except:
print "MythDB module cannot be initialized"
that works fine. However,
try:
import MythTV
mythtv = MythTV()
except:
print "MythTV module cannot be initialized"
throws an exception.
Ian.
More information about the mythtv-dev
mailing list