SyntaxFix
Write A Post
Hire A Developer
Questions
This should do what you want:
print tempfile.gettempdir()
For me on my Windows box, I get:
c:\temp
and on my Linux box I get:
/tmp