New problem with py-temp-directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-mode.el |
Fix Released
|
Medium
|
Andreas Roehler |
Bug Description
Using r911 under OS X, I have TMPDIR set to a valid directory, yet when I run a python script under python-mode then run
C-h v py-temp-directory
I get the result nil, which seems odd.
I tried running the following code, taken from python-mode.el, in my *scratch* buffer:
(defun ok '(lambda (x)
(and x
(defun fff ()
"RHS test of temp-dir code"
(or (funcall ok py-temp-directory)
(funcall ok (getenv "TMPDIR"))
(funcall ok (getenv "TEMP/TMP"))
(funcall ok "/usr/tmp")
(funcall ok "/tmp")
(funcall ok "/var/tmp")
(and (eq system-type 'darwin)
(and (or (eq system-type 'ms-dos)(eq system-type 'ms-dos)(eq system-type 'windows-nt))
(error
"Couldn't find a usable temp directory -- set `py-temp-
(fff)
"/var/folders/
Note that this produces the desired result.
Changed in python-mode: | |
importance: | Undecided → Medium |
assignee: | nobody → Andreas Roehler (a-roehler) |
milestone: | none → 6.0.6 |
status: | New → Confirmed |
Changed in python-mode: | |
status: | Confirmed → Fix Committed |
Changed in python-mode: | |
status: | Fix Committed → Fix Released |