<?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: Finding a user&#8217;s Documents folder on Windows and Mac</title>
	<atom:link href="http://www.blueskyonmars.com/2005/08/05/finding-a-users-my-documents-folder-on-windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.blueskyonmars.com/2005/08/05/finding-a-users-my-documents-folder-on-windows/</link>
	<description>Kevin Dangoor on Creating Software Products</description>
	<pubDate>Thu, 08 Jan 2009 23:39:34 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Irwin Oppenheim</title>
		<link>http://www.blueskyonmars.com/2005/08/05/finding-a-users-my-documents-folder-on-windows/comment-page-1/#comment-97371</link>
		<dc:creator>Irwin Oppenheim</dc:creator>
		<pubDate>Fri, 02 Feb 2007 16:58:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.blueskyonmars.com/?p=1482#comment-97371</guid>
		<description>This bit of code worked for me:

from win32com.shell import shell, shellcon
mydocuments = shell.SHGetFolderPath(0, shellcon.CSIDL_PERSONAL, 0, 0)

I found a whole list of constants here:
http://www.theutilityfactory.com/online_help/index.html?hidd_special_folders.htm

Best,
Irwin</description>
		<content:encoded><![CDATA[<p>This bit of code worked for me:</p>
<p>from win32com.shell import shell, shellcon<br />
mydocuments = shell.SHGetFolderPath(0, shellcon.CSIDL_PERSONAL, 0, 0)</p>
<p>I found a whole list of constants here:<br />
<a href="http://www.theutilityfactory.com/online_help/index.html?hidd_special_folders.htm" rel="nofollow">http://www.theutilityfactory.com/online_help/index.html?hidd_special_folders.htm</a></p>
<p>Best,<br />
Irwin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric H. Jung</title>
		<link>http://www.blueskyonmars.com/2005/08/05/finding-a-users-my-documents-folder-on-windows/comment-page-1/#comment-2444</link>
		<dc:creator>Eric H. Jung</dc:creator>
		<pubDate>Thu, 18 Aug 2005 00:38:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.blueskyonmars.com/?p=1482#comment-2444</guid>
		<description>It's not that "My Documents" is a virtual folder, it's that each user can change the location of "My Documents" to wherever he likes. Assuming it's under the user's profile is a big mistake. It can very easily be under the root or /temp or anything else...</description>
		<content:encoded><![CDATA[<p>It&#8217;s not that &#8220;My Documents&#8221; is a virtual folder, it&#8217;s that each user can change the location of &#8220;My Documents&#8221; to wherever he likes. Assuming it&#8217;s under the user&#8217;s profile is a big mistake. It can very easily be under the root or /temp or anything else&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tazzzzz</title>
		<link>http://www.blueskyonmars.com/2005/08/05/finding-a-users-my-documents-folder-on-windows/comment-page-1/#comment-2392</link>
		<dc:creator>tazzzzz</dc:creator>
		<pubDate>Mon, 08 Aug 2005 17:35:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.blueskyonmars.com/?p=1482#comment-2392</guid>
		<description>Microsoft strongly recommends using the style that I pointed to, for a couple of good reasons. One is that "My Documents" is apparently some kind of virtual folder and is not guaranteed to be where you think it is. The other is the "My Documents" is English... the folder itself isn't guaranteed to be called "My Documents".</description>
		<content:encoded><![CDATA[<p>Microsoft strongly recommends using the style that I pointed to, for a couple of good reasons. One is that &#8220;My Documents&#8221; is apparently some kind of virtual folder and is not guaranteed to be where you think it is. The other is the &#8220;My Documents&#8221; is English&#8230; the folder itself isn&#8217;t guaranteed to be called &#8220;My Documents&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Keating</title>
		<link>http://www.blueskyonmars.com/2005/08/05/finding-a-users-my-documents-folder-on-windows/comment-page-1/#comment-2391</link>
		<dc:creator>Tim Keating</dc:creator>
		<pubDate>Mon, 08 Aug 2005 17:06:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.blueskyonmars.com/?p=1482#comment-2391</guid>
		<description>As an alternative, on Windows -- and I know, this is just crazy talk from a Linux programmer -- you could do os.path.join(os.getenv('USERPROFILE'), 'My Documents').</description>
		<content:encoded><![CDATA[<p>As an alternative, on Windows &#8212; and I know, this is just crazy talk from a Linux programmer &#8212; you could do os.path.join(os.getenv(&#8217;USERPROFILE&#8217;), &#8216;My Documents&#8217;).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kent Johnson</title>
		<link>http://www.blueskyonmars.com/2005/08/05/finding-a-users-my-documents-folder-on-windows/comment-page-1/#comment-2368</link>
		<dc:creator>Kent Johnson</dc:creator>
		<pubDate>Sat, 06 Aug 2005 11:59:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.blueskyonmars.com/?p=1482#comment-2368</guid>
		<description>You're right about the lack of license for winshell.py. I've just emailed Tim Golden asking if he would clarify this.</description>
		<content:encoded><![CDATA[<p>You&#8217;re right about the lack of license for winshell.py. I&#8217;ve just emailed Tim Golden asking if he would clarify this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tazzzzz</title>
		<link>http://www.blueskyonmars.com/2005/08/05/finding-a-users-my-documents-folder-on-windows/comment-page-1/#comment-2367</link>
		<dc:creator>tazzzzz</dc:creator>
		<pubDate>Sat, 06 Aug 2005 11:49:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.blueskyonmars.com/?p=1482#comment-2367</guid>
		<description>Thank you! I was certain there was a Cocoa way to do it, and I'd rather do it the Cocoa way...</description>
		<content:encoded><![CDATA[<p>Thank you! I was certain there was a Cocoa way to do it, and I&#8217;d rather do it the Cocoa way&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ronald Oussoren</title>
		<link>http://www.blueskyonmars.com/2005/08/05/finding-a-users-my-documents-folder-on-windows/comment-page-1/#comment-2366</link>
		<dc:creator>Ronald Oussoren</dc:creator>
		<pubDate>Sat, 06 Aug 2005 07:58:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.blueskyonmars.com/?p=1482#comment-2366</guid>
		<description>An alternative on the mac using PyObjC:

from Foundation import *
docs = NSSearchPathForDirectoriesInDomains(
     NSDocumentDirectory, NSUserDomainMask, True)[0]</description>
		<content:encoded><![CDATA[<p>An alternative on the mac using PyObjC:</p>
<p>from Foundation import *<br />
docs = NSSearchPathForDirectoriesInDomains(<br />
     NSDocumentDirectory, NSUserDomainMask, True)[0]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tazzzzz</title>
		<link>http://www.blueskyonmars.com/2005/08/05/finding-a-users-my-documents-folder-on-windows/comment-page-1/#comment-2364</link>
		<dc:creator>tazzzzz</dc:creator>
		<pubDate>Sat, 06 Aug 2005 02:26:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.blueskyonmars.com/?p=1482#comment-2364</guid>
		<description>I hadn't seen that, oddly enough. That certainly does have an API that is more pleasant.

I'd imagine that the author would be happy to fix this, but I noticed that there's no license listed for it... which essentially renders it unusable.

Thanks for the link!</description>
		<content:encoded><![CDATA[<p>I hadn&#8217;t seen that, oddly enough. That certainly does have an API that is more pleasant.</p>
<p>I&#8217;d imagine that the author would be happy to fix this, but I noticed that there&#8217;s no license listed for it&#8230; which essentially renders it unusable.</p>
<p>Thanks for the link!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kent Johnson</title>
		<link>http://www.blueskyonmars.com/2005/08/05/finding-a-users-my-documents-folder-on-windows/comment-page-1/#comment-2363</link>
		<dc:creator>Kent Johnson</dc:creator>
		<pubDate>Sat, 06 Aug 2005 01:59:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.blueskyonmars.com/?p=1482#comment-2363</guid>
		<description>Did you try the method in Tim Golden's winshell.py? It is a bit more straightforward.

http://tgolden.sc.sabren.com/python/winshell.html</description>
		<content:encoded><![CDATA[<p>Did you try the method in Tim Golden&#8217;s winshell.py? It is a bit more straightforward.</p>
<p><a href="http://tgolden.sc.sabren.com/python/winshell.html" rel="nofollow">http://tgolden.sc.sabren.com/python/winshell.html</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.285 seconds -->
