<br><br><div class="gmail_quote">On Fri, Feb 3, 2012 at 2:32 PM, Raymond Wagner <span dir="ltr">&lt;<a href="mailto:raymond@wagnerrp.com">raymond@wagnerrp.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 2/3/2012 15:18, Doug Lytle wrote:<br>
&gt; David Crawford wrote:<br>
&gt;&gt; if len(sys.argv) != 3:<br>
&gt;    From someone with absolutely no Python experience, the line !=<br>
&gt; typically means &#39;not equal to&#39;.<br>
&gt;<br>
&gt; My guess is that it&#39;s looking for 3 command line options.<br>
<br>
</div>Specifically, those three command line arguments _should_ be<br>
&#39;/home/dave/uksub2srt/renamesrt.py&#39;, &#39;&lt;chanid&gt;&#39;, and &#39;&lt;starttime&gt;&#39;.<br>
However, he keeps manually running the python interpreter, rather than<br>
letting the hashbang at the top of the script do its job, resulting in<br>
the four arguments: &#39;python&#39;, &#39;/home/dave/uksub2srt/renamesrt.py&#39;,<br>
<div class="im HOEnZb">&#39;&lt;chanid&gt;&#39;, and &#39;&lt;starttime&gt;&#39;.<br>
</div><div class="HOEnZb"><div class="h5"><br></div></div></blockquote><div><br></div><div>Raymond:  I must say I am real impressed with your patience in that you are actually still following this thread. :-)</div></div>