Skip to content

Commit

Permalink
Creates folder ~/.mythtv upon UPnP autodetection if it does not alrea…
Browse files Browse the repository at this point in the history
…dy exist. Closes #8095.

git-svn-id: http://svn.mythtv.org/svn/trunk@23574 7dbf422c-18fa-0310-86e9-fd20926502f2
  • Loading branch information
wagnerrp committed Feb 20, 2010
1 parent 27fde5c commit 4f8eb42
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mythtv/bindings/python/MythTV/MythBase.py
Original file line number Diff line number Diff line change
Expand Up @@ -1002,7 +1002,10 @@ def __init__(self, db=None, args=None, **dbconn):
</UPnP>
</Configuration>
""" % tuple(settings)
fp = open(os.path.expanduser('~/.mythtv/config.xml'), 'w')
mythdir = os.path.expanduser('~/.mythtv')
if not os.access(mythdir, os.F_OK):
os.mkdir(mythdir,0755)
fp = open(mythdir+'/config.xml', 'w')
fp.write(config)
fp.close()

Expand Down

0 comments on commit 4f8eb42

Please sign in to comment.