[mythtv] Python bindings problem with importing modules
Hadley Rich
hads at nice.net.nz
Thu Mar 13 07:35:33 UTC 2008
On Thu, 13 Mar 2008 20:20:18 Ian Barton wrote:
> Thanks, but that doesn't work either. See the following simple example.
>
> #!/usr/bin/python
>
> from MythTV import *
>
> # CRITICAL is defined in MythLog
> log = MythLog(CRITICAL, '#%(levelname)s - %(message)s', 'MythTV')
>
>
> File "./test.py", line 14, in <module>
> log = MythLog(CRITICAL, '#%(levelname)s - %(message)s', 'MythTV')
> NameError: name 'CRITICAL' is not defined
There's a little bit of weirdness with the scope at the moment.
>>> from MythTV.MythLog import *
>>> CRITICAL
50
>>>
hads
--
http://nicegear.co.nz
VoIP, DVB and other Linux compatible hardware
More information about the mythtv-dev
mailing list