469,903 Members | 1,463 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,903 developers. It's quick & easy.

tempfile.gettempdir() result on Windows

On MS Windows, I am trying to find out a good default location to
save some temporary files.

The tempfile module seemed to have exactly what I wanted:
import tempfile
tempfile.gettempdir() 'c:\\docume~1\\admini~1\\locals~1\\temp'

My problem (entirely cosmetic, but still) is that I also need to
show this location to the users of my program, who I suspect
would be much happier with a 'proper' Windows path than with this
'~1' DOS malarkey.

Does anybody know how I can obtain a temp directory in 'verbose'
format (or somehow convert the gettempdir() result to that)?

Leo Breebaart <le*@lspace.org>
Jul 19 '05 #1
0 1720

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Thomas Guettler | last post: by
2 posts views Thread by marco | last post: by
1 post views Thread by Jonathan Wright | last post: by
1 post views Thread by Matt Garman | last post: by
5 posts views Thread by Gregory Piñero | last post: by
6 posts views Thread by James T. Dennis | last post: by
9 posts views Thread by billiejoex | last post: by
7 posts views Thread by byte8bits | last post: by
1 post views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.