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>
&nbsp;&nbsp;&nbsp; &quot;&quot;&quot;This is the folder where all intro files are located.&quot;&quot;&quot;<br>
&nbsp;&nbsp;&nbsp; return os.path.join(sharepath, &quot;mytharchive&quot;, &quot;intro&quot;)<br>
<br>
becomes:<br>
<br>
def getIntroPath(theme):<br>
&nbsp;&nbsp;&nbsp; &quot;&quot;&quot;This is the folder where all intro files are located.&quot;&quot;&quot;<br>
&nbsp;&nbsp;&nbsp; &quot;&quot;&quot;Search theme path for intro first.&quot;&quot;&quot;<br>
&nbsp;&nbsp;&nbsp; if os.path.exists(os.path.join(sharepath, &quot;mytharchive&quot;, &quot;themes&quot;, theme, &quot;intro&quot;)):<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return os.path.join(sharepath, &quot;mytharchive&quot;, &quot;themes&quot;, theme, &quot;intro&quot;)<br>
<br>
&nbsp;&nbsp;&nbsp; if os.path.exists(os.path.join(sharepath, &quot;mytharchive&quot;, &quot;intro&quot;)):<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return os.path.join(sharepath, &quot;mytharchive&quot;, &quot;intro&quot;)<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> &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; Paul,<br>&gt;<br>&gt; I've made some changes to 
mythburn.pl which allows for the image,<br>&gt; music and intro folders to also be contained within the theme itself.<br>&gt; I posteed the script to the list yesterday, but I think it's been<br>&gt; blocked due to size..&nbsp;&nbsp;If you want these changes let me know and I'll
<br>&gt; mail them to you.<br>&gt;<br>&gt; Roy<br>&gt;<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&nbsp;&nbsp;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>