Mercurial > cpython-lru_cache-weakref
diff Misc/python-mode.el @ 22524:0aae09986fc9 2.2
backport bwarsaw's checkin of
revision 4.8 of python-mode.el
(py-temp-directory): Add /var/tmp to the list of directories this
searches. This is added after /tmp. Closes SF bug #505488, except
that /var/tmp comes after /tmp instead of the patch's suggestion of
putting it before /usr/tmp.
| author | Michael W. Hudson <mwh@python.net> |
|---|---|
| date | Mon, 25 Mar 2002 12:24:24 +0000 |
| parents | 029e4cbd2312 |
| children | ab4fa78afddf |
line wrap: on
line diff
--- a/Misc/python-mode.el Mon Mar 25 12:20:43 2002 +0000 +++ b/Misc/python-mode.el Mon Mar 25 12:24:24 2002 +0000 @@ -204,13 +204,14 @@ (or (funcall ok (getenv "TMPDIR")) (funcall ok "/usr/tmp") (funcall ok "/tmp") + (funcall ok "/var/tmp") (funcall ok ".") (error "Couldn't find a usable temp directory -- set `py-temp-directory'"))) - "*Directory used for temp files created by a *Python* process. + "*Directory used for temporary files created by a *Python* process. By default, the first directory from this list that exists and that you -can write into: the value (if any) of the environment variable TMPDIR, -/usr/tmp, /tmp, or the current directory." +can write into: the value (if any) of the environment variable TMPDIR, +/usr/tmp, /tmp, /var/tmp, or the current directory." :type 'string :group 'python)
