os independent temp dir?

Julio F. Schwarzbeck jflores at codeit.com
Tue May 8 14:33:47 EDT 2001


import tempfile
tmpDir = tempfile.tempdir

If TMPDIR os environment var is not set, None is return, works in Linux & 
Win afaik.



At 05:06 PM 5/8/01 +0000, Owen F. Ransen wrote:
>Hello All,
>
>Is there a Python way of finding the standard system
>temporary directory ? I need to place a file there
>with a specific file name. The function should work
>in Mac and Windows...
>
>TIA
>
>Owen
>
>--
>Owen F. Ransen
>http://www.ransen.com/
>Home of Gliftic & Repligator Image Generators
>--
>http://mail.python.org/mailman/listinfo/python-list





More information about the Python-list mailing list