<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Likesalmon Design &#187; Python</title>
	<atom:link href="http://www.likesalmondesign.com/category/python/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.likesalmondesign.com</link>
	<description>Open Source Web Design and Development from Scratch</description>
	<lastBuildDate>Fri, 03 Sep 2010 15:59:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Execute scripts from the Python interpreter</title>
		<link>http://www.likesalmondesign.com/execute-scripts-from-the-python-interpreter/</link>
		<comments>http://www.likesalmondesign.com/execute-scripts-from-the-python-interpreter/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 23:28:41 +0000</pubDate>
		<dc:creator>Ammon</dc:creator>
				<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://www.likesalmondesign.com/?p=224</guid>
		<description><![CDATA[>>> execfile('myscript.py') # Execute 'myscript.py']]></description>
			<content:encoded><![CDATA[<p><code><br />
>>> execfile('myscript.py') # Execute 'myscript.py'<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.likesalmondesign.com/execute-scripts-from-the-python-interpreter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change current working directory from inside the Python interpreter</title>
		<link>http://www.likesalmondesign.com/change-current-working-directory-from-inside-the-python-interpreter/</link>
		<comments>http://www.likesalmondesign.com/change-current-working-directory-from-inside-the-python-interpreter/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 23:17:35 +0000</pubDate>
		<dc:creator>Ammon</dc:creator>
				<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://www.likesalmondesign.com/?p=222</guid>
		<description><![CDATA[This is comes in very handy when working in the Python interpreter: >>> import os >>> os.getcwd() # Returns the current working directory; usually the directory you were in when you started the interpreter >>> os.chdir('/path/to/directory') # Change the current working directory to 'path/to/directory'. Also accepts bash commands like '..' and '/']]></description>
			<content:encoded><![CDATA[<p>This is comes in very handy when working in the Python interpreter:</p>
<p><code><br />
>>> import os<br />
>>> os.getcwd() # Returns the current working directory; usually the directory you were in when you started the interpreter<br />
>>> os.chdir('/path/to/directory') # Change the current working directory to 'path/to/directory'. Also accepts bash commands like '..' and '/'<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.likesalmondesign.com/change-current-working-directory-from-inside-the-python-interpreter/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>easy_install for Python 2.6 on Windows XP</title>
		<link>http://www.likesalmondesign.com/easy_install-for-python-2-6-on-windows-xp/</link>
		<comments>http://www.likesalmondesign.com/easy_install-for-python-2-6-on-windows-xp/#comments</comments>
		<pubDate>Wed, 30 Sep 2009 00:05:08 +0000</pubDate>
		<dc:creator>Ammon</dc:creator>
				<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://www.likesalmondesign.com/?p=217</guid>
		<description><![CDATA[Sometimes I am forced to use windows, and for some reason (although I can&#8217;t blame anyone not giving a crap) there is no easy_install for Python 2.6 on Windows.  So I followed these instructions from monkut on the Stack Overflow forum: For installing setuptools for 2.6 download &#8220;ez_setup.py&#8221; from: http://svn.python.org/projects/sandbox/branches/setuptools-0.6/#egg=setuptools-dev06 And run it [In the [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes I am forced to use windows, and for some reason (although I can&#8217;t blame anyone not giving a crap) there is no easy_install for Python 2.6 on Windows.  So I followed these instructions from <a title="monkut" href="http://stackoverflow.com/users/24718/monkut">monkut</a> on the <a title="stack overflow" href="http://stackoverflow.com/questions/1106574/installing-easyinstall-for-python-2-6-2-missing">Stack Overflow forum</a>:</p>
<blockquote><p>For installing setuptools for 2.6 download &#8220;ez_setup.py&#8221; from:</p>
<p><a href="http://svn.python.org/projects/sandbox/branches/setuptools-0.6/#egg=setuptools-dev06">http://svn.python.org/projects/sandbox/branches/setuptools-0.6/#egg=setuptools-dev06</a></p>
<p>And run it [<em>In the terminal, navigate to the folder where the ez_setup.py file downloaded to and type </em><code>python ez_setup.py</code>]. setuptools should be installed. This will place easy_install in your python26/Scripts directory, make sure this is in your PATH, and then you should be able to use easy_install.</p></blockquote>
<p>This worked great. In order to add python26/Scripts to your Windows path:</p>
<ol>
<li>Right click on the &#8216;My Computer&#8217; icon on your desktop and select &#8216;Properties&#8217;</li>
<li>Select the &#8216;Advanced&#8217; tab, and then select &#8216;Environment Variables&#8217;</li>
<li>Under &#8216;System Variables&#8217;  select the variable &#8216;Path&#8217; and click &#8216;Edit&#8217;</li>
<li>At the end of the line in &#8216;Variable value:&#8217; add a semicolon [;] and write &#8216;C:\python26\Scripts&#8217;</li>
<li>Select &#8216;OK&#8217;  a couple times, restart terminal, and you should be able to type in &#8216;easy_install &#8211;help&#8217; and receive a big &#8216;ol mess of help</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.likesalmondesign.com/easy_install-for-python-2-6-on-windows-xp/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
