[Python-bugs-list] [ python-Bugs-505488 ] python-mode.el sets TMPDIR to /usr/tmp

noreply@sourceforge.net noreply@sourceforge.net
Mon, 18 Mar 2002 10:53:57 -0800


Bugs item #505488, was opened at 2002-01-18 13:57
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=505488&group_id=5470

Category: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Matthias Klose (doko)
Assigned to: Barry Warsaw (bwarsaw)
Summary: python-mode.el sets TMPDIR to /usr/tmp

Initial Comment:
all python versions. Not sure why, but on most systems 
this directory does not exist. Probably should be
/var/tmp ...(variable py-temp-directory).


----------------------------------------------------------------------

>Comment By: Barry Warsaw (bwarsaw)
Date: 2002-03-18 13:53

Message:
Logged In: YES 
user_id=12800

Hmm, first, the Summary is incorrect since python-mode never
sets $TMPDIR, although it does read $TMPDIR.  Note that
python-mode also should never use /usr/tmp if it doesn't
exist; it'll just go down the line of $TMPDIR, /usr/tmp,
/tmp,  and then . looking for a writable existing directory.

I don't mind adding /var/tmp to that list, but it should be
done after /tmp, since I think on many systems /var/tmp may
not be writable by everyone.  You can always override this
by setting the TMPDIR environment variable.

----------------------------------------------------------------------

Comment By: Skip Montanaro (montanaro)
Date: 2002-03-17 18:28

Message:
Logged In: YES 
user_id=44345

proposed patch attached.  Suggest adding /var/tmp ahead
of /usr/tmp.


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=505488&group_id=5470