[Patches] [ python-Patches-483085 ] Include windows default temp dir
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 04 Dec 2001 13:27:18 -0800
Patches item #483085, was opened at 2001-11-18 07:40
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=483085&group_id=5470
Category: Library (Lib)
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Emile van Sebille (evansebille)
Assigned to: Tim Peters (tim_one)
Summary: Include windows default temp dir
Initial Comment:
Include os.getenv('TEMP') in attempdirs so that temp
files by default are created per the environment
setting.
----------------------------------------------------------------------
>Comment By: Tim Peters (tim_one)
Date: 2001-12-04 13:27
Message:
Logged In: YES
user_id=31435
Emile, I don't understand what the patch accomplishes for
you. gettempdir() already contains these lines later:
"""
. for envname in 'TMPDIR', 'TEMP', 'TMP':
. if os.environ.has_key(envname):
. attempdirs.insert(0, os.environ[envname])
"""
so if you have a TEMP envar set on Windows, its value
should already be getting prepended to attemdirs (and it
does, on my Win2K box -- doesn't it work on your box?).
----------------------------------------------------------------------
Comment By: Guido van Rossum (gvanrossum)
Date: 2001-12-04 09:45
Message:
Logged In: YES
user_id=6380
Tim, does this look reasonable to you? It does to me.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=483085&group_id=5470