<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>> You wont be forced to put them in the theme dir, as it will default<br>> 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",<br>> theme, "intro")):<br>> return os.path.join(sharepath, "mytharchive", "themes", theme,
<br>> "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>OK, that sound reasonable. It would be nice if looking up the intro<br>worked in a similar way to how getThemeFile() works just to be
<br>consistent. Maybe update getThemeFile to also lookup intro's?<br><br>Paul H.<br><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>
yes, that sounds a better way of doing it, removing the need for the getintropath def at the same time.<br>
<span class="gmail_quote"></span><br>