You wont be forced to put them in the theme dir, as it will default
back to the original dirs if the script cant find them in the theme...<br>
<br>
The changes are:<br>
<br>
def getIntroPath():<br>
"""This is the folder where all intro files are located."""<br>
return os.path.join(sharepath, "mytharchive", "intro")<br>
<br>
becomes:<br>
<br>
def getIntroPath(theme):<br>
"""This is the folder where all intro files are located."""<br>
"""Search theme path for intro first."""<br>
if os.path.exists(os.path.join(sharepath, "mytharchive", "themes", theme, "intro")):<br>
return os.path.join(sharepath, "mytharchive", "themes", theme, "intro")<br>
<br>
if os.path.exists(os.path.join(sharepath, "mytharchive", "intro")):<br>
return os.path.join(sharepath, "mytharchive", "intro")<br>
<br>
and calls to getIntroPath() become getIntroPath(themeName)<br><br>
<br>
Just thinking it would be easier to provide themes for this if all the files can be contained in a single folder...<br><div><span class="gmail_quote">On 15/09/06, <b class="gmail_sendername">Paul Harrison</b> <<a href="mailto:mythtv@dsl.pipex.com">
mythtv@dsl.pipex.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Roy Lofthouse wrote:<br>> Paul,<br>><br>> I've made some changes to
mythburn.pl which allows for the image,<br>> music and intro folders to also be contained within the theme itself.<br>> I posteed the script to the list yesterday, but I think it's been<br>> blocked due to size.. If you want these changes let me know and I'll
<br>> mail them to you.<br>><br>> Roy<br>><br>That depends on exactly what your changes do.<br><br>You can already put the images and music files in the theme directory<br>and the script will use them rather than the shared files if thats what
<br>you want. I'd rather not be forced to have copies of those shared files<br>in each theme directory though. The only files that don't work like this<br>currently are the intro files which the script always looks for these in
<br>the shared intros folder.<br><br>Paul H.<br><br>_______________________________________________<br>mythtv-users mailing list<br><a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br><a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users">
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br></blockquote></div><br>