Cross-platform way of getting temp directory in Python
Posted
by Joril
on Stack Overflow
See other posts from Stack Overflow
or by Joril
Published on 2009-05-11T12:21:46Z
Indexed on
2010/05/11
16:04 UTC
Read the original article
Hit count: 314
Hi all,
Is there a cross-platform way of getting the path to the temp
directory in Python 2.6?
For example, under Linux that would be /tmp
, while under XP C:\Documents and settings\\[user]\Application settings\Temp
.
Thanks!
© Stack Overflow or respective owner