<br>
<div><span class="gmail_quote">On 15/09/06, <b class="gmail_sendername">Paul Harrison</b> &lt;<a href="mailto:mythtv@dsl.pipex.com">mythtv@dsl.pipex.com</a>&gt; 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>&gt; You wont be forced to put them in the theme dir, as it will default<br>&gt; back to the original dirs if the script cant find them in the theme...<br>&gt;<br>&gt; The changes are:<br>&gt;<br>&gt; def getIntroPath():
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &quot;&quot;&quot;This is the folder where all intro files are located.&quot;&quot;&quot;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; return os.path.join(sharepath, &quot;mytharchive&quot;, &quot;intro&quot;)<br>&gt;<br>&gt; becomes:<br>&gt;
<br>&gt; def getIntroPath(theme):<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &quot;&quot;&quot;This is the folder where all intro files are located.&quot;&quot;&quot;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &quot;&quot;&quot;Search theme path for intro first.&quot;&quot;&quot;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; if os.path.exists(os.path.join(sharepath, &quot;mytharchive&quot;, &quot;themes&quot;,<br>&gt; theme, &quot;intro&quot;)):<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return os.path.join(sharepath, &quot;mytharchive&quot;, &quot;themes&quot;, theme,
<br>&gt; &quot;intro&quot;)<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; if os.path.exists(os.path.join(sharepath, &quot;mytharchive&quot;, &quot;intro&quot;)):<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return os.path.join(sharepath, &quot;mytharchive&quot;, &quot;intro&quot;)
<br>&gt;<br>&gt; and calls to getIntroPath() become getIntroPath(themeName)<br>&gt;<br>&gt;<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>