<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Python Won&#8217;t Take Command Line Arguments &#8211; Windows Vista</title>
	<atom:link href="http://www.lalitkapoor.com/blog/2008/12/21/python-wont-take-command-line-arguments-windows-vista/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lalitkapoor.com/blog/2008/12/21/python-wont-take-command-line-arguments-windows-vista/</link>
	<description>Data Analytics &#124; Cloud Computing &#124; Development</description>
	<lastBuildDate>Tue, 07 Sep 2010 09:56:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Lalit Kapoor</title>
		<link>http://www.lalitkapoor.com/blog/2008/12/21/python-wont-take-command-line-arguments-windows-vista/comment-page-1/#comment-6806</link>
		<dc:creator>Lalit Kapoor</dc:creator>
		<pubDate>Fri, 18 Dec 2009 04:38:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.lalitkapoor.com/blog/?p=29#comment-6806</guid>
		<description>Nice, good catch.</description>
		<content:encoded><![CDATA[<p>Nice, good catch.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Hatch</title>
		<link>http://www.lalitkapoor.com/blog/2008/12/21/python-wont-take-command-line-arguments-windows-vista/comment-page-1/#comment-6802</link>
		<dc:creator>John Hatch</dc:creator>
		<pubDate>Thu, 17 Dec 2009 22:41:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.lalitkapoor.com/blog/?p=29#comment-6802</guid>
		<description>I had the same problem. After searching the entire registry I found the problem was with the following key:

[HKEY_CURRENT_USER\Software\Classes\Applications\python.exe\shell\open\command]
(default)=&quot;D:\Python26\python.exe&quot; &quot;%1&quot;

I changed it to:
(default)=&quot;D:\Python26\python.exe&quot; &quot;%1&quot; %*

Python scripts now take arguments from the command line without &#039;python&#039; at the beginning. That key was overriding the settings for Python.File. 

Very frustrating, eh? :P</description>
		<content:encoded><![CDATA[<p>I had the same problem. After searching the entire registry I found the problem was with the following key:</p>
<p>[HKEY_CURRENT_USER\Software\Classes\Applications\python.exe\shell\open\command]<br />
(default)=&#8221;D:\Python26\python.exe&#8221; &#8220;%1&#8243;</p>
<p>I changed it to:<br />
(default)=&#8221;D:\Python26\python.exe&#8221; &#8220;%1&#8243; %*</p>
<p>Python scripts now take arguments from the command line without &#8216;python&#8217; at the beginning. That key was overriding the settings for Python.File. </p>
<p>Very frustrating, eh? <img src='http://www.lalitkapoor.com/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bryce Thomas</title>
		<link>http://www.lalitkapoor.com/blog/2008/12/21/python-wont-take-command-line-arguments-windows-vista/comment-page-1/#comment-6598</link>
		<dc:creator>Bryce Thomas</dc:creator>
		<pubDate>Thu, 05 Nov 2009 06:38:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.lalitkapoor.com/blog/?p=29#comment-6598</guid>
		<description>The problem I had was that it doesn&#039;t pass the command line arguments if you don&#039;t have &quot;python&quot; at the front.

So for example, this doesn&#039;t work for me:

&lt;code&gt;myscript.py argument1 argument2 &lt;/code&gt;

whereas this does:

&lt;code&gt;python myscript.py argument1 argument2&lt;/code&gt;

I don&#039;t know if this is a related problem or not.</description>
		<content:encoded><![CDATA[<p>The problem I had was that it doesn&#8217;t pass the command line arguments if you don&#8217;t have &#8220;python&#8221; at the front.</p>
<p>So for example, this doesn&#8217;t work for me:</p>
<p><code>myscript.py argument1 argument2 </code></p>
<p>whereas this does:</p>
<p><code>python myscript.py argument1 argument2</code></p>
<p>I don&#8217;t know if this is a related problem or not.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Harris</title>
		<link>http://www.lalitkapoor.com/blog/2008/12/21/python-wont-take-command-line-arguments-windows-vista/comment-page-1/#comment-3078</link>
		<dc:creator>Chris Harris</dc:creator>
		<pubDate>Thu, 07 May 2009 04:52:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.lalitkapoor.com/blog/?p=29#comment-3078</guid>
		<description>Thanks, that worked great.</description>
		<content:encoded><![CDATA[<p>Thanks, that worked great.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
