Opened 14 years ago
Closed 14 years ago
#8095 closed defect (fixed)
Python bindings fail if config.xml is missing
Reported by: | Owned by: | Raymond Wagner | |
---|---|---|---|
Priority: | minor | Milestone: | unknown |
Component: | Bindings - Python | Version: | head |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
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'
Attachments (1)
Change History (3)
comment:1 Changed 14 years ago by
Particularly this might be falling over if ~/.mythtv is missing, not just the config.xml
Note: See
TracTickets for help on using
tickets.
error