[mythtv] Python bindings problem with importing modules

Ian Barton lists at manor-farm.org
Thu Mar 13 09:35:15 UTC 2008


>> #!/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.
> 
I can see that:)
>>>> from MythTV.MythLog import *
>>>> CRITICAL
> 50

Thanks that worked.

Ian.


More information about the mythtv-dev mailing list