[mythtv-commits] Ticket #8095: Python bindings fail if config.xml is missing
MythTV
mythtv at cvs.mythtv.org
Sat Feb 20 16:11:59 UTC 2010
#8095: Python bindings fail if config.xml is missing
--------------------------------+-------------------------------------------
Reporter: superm1@… | Owner: wagnerrp
Type: defect | Status: new
Priority: minor | Milestone: unknown
Component: Bindings - Python | Version: head
Severity: medium | Mlocked: 0
--------------------------------+-------------------------------------------
Version : 0.23~trunk23567
If this file is missing, the bindings should create it rather than flop
over.
>>> import MythTV
>>> args = { 'SecurityPin' : '1234' }
>>> db_base = MythTV.MythDBBase(args=args)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.6/dist-packages/MythTV/MythBase.py", line 995, in
__init__
fp = open(os.path.expanduser('~/.mythtv/config.xml'), 'w')
IOError: [Errno 2] No such file or directory:
'/home/ubuntu/.mythtv/config.xml'
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/8095>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list