summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2002-03-18 18:53:56 (GMT)
committerBarry Warsaw <barry@python.org>2002-03-18 18:53:56 (GMT)
commitd164837856562de5f228898039e4ca75bc90d204 (patch)
tree05754442908157f94670c75a40a3e63aa08a8736 /Misc
parent5909402cde79d3eb0f87a13d99092b5cb4d61661 (diff)
downloadcpython-d164837856562de5f228898039e4ca75bc90d204.zip
cpython-d164837856562de5f228898039e4ca75bc90d204.tar.gz
cpython-d164837856562de5f228898039e4ca75bc90d204.tar.bz2
(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.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/python-mode.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/Misc/python-mode.el b/Misc/python-mode.el
index 868ff6f..aaf5c9e 100644
--- a/Misc/python-mode.el
+++ b/Misc/python-mode.el
@@ -204,13 +204,14 @@ as indentation hints, unless the comment character is in column zero."
(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)