#9238: J. Gutow's update to Jmol in the notebook...
------------------------------------------------+---------------------------
Reporter: gutow | Owner: gutow
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-4.7
Component: notebook | Keywords:
Author: Jonathan Gutow | Upstream: N/A
Reviewer: Jason Grout, Karl-Dieter Crisman | Merged:
Work_issues: |
------------------------------------------------+---------------------------
Comment(by kcrisman):
Oh, yeah, you've got it.
{{{
sage: filename = sage.misc.misc.tmp_filename()
sage: filename
'/Users/<MYNAME>/.sage//temp/<MYCOMPUTERNAME>.local/77367//tmp_0'
}}}
and base gets that double slash.
But that part really comes from `sage.misc.misc.SAGE_TMP`, I think.
{{{
while True:
tmp = "%s/%s_%s"%(SAGE_TMP, name, __tmp_n)
__tmp_n += 1
if not os.path.exists(tmp):
break
return tmp
}}}
{{{
SAGE_TMP='%s/temp/%s/%s/'%(DOT_SAGE, HOSTNAME, os.getpid())
}}}
{{{
sage: sage.misc.misc.SAGE_TMP
'/Users/<MYNAME>/.sage//temp/<MYCOMPUTERNAME>.local/77367/'
}}}
which then has yet another / appended to it. I guess this is helpful in
the notebook?
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9238#comment:85>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.