]> granicus.if.org Git - python/commitdiff
(py-temp-directory): Add /var/tmp to the list of directories this
authorBarry Warsaw <barry@python.org>
Mon, 18 Mar 2002 18:53:56 +0000 (18:53 +0000)
committerBarry Warsaw <barry@python.org>
Mon, 18 Mar 2002 18:53:56 +0000 (18:53 +0000)
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.

Misc/python-mode.el

index 868ff6fe84eac4975009b26dc44acb0b8d8ee3f4..aaf5c9eb9f45332e8518fd4d5aabbdd53cce2f80 100644 (file)
@@ -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)