#7279: issue with %sh in sagenb (notebook)
------------------------+---------------------------------------------------
Reporter: was | Owner: boothby
Type: defect | Status: needs_work
Priority: major | Milestone: sage-4.3
Component: notebook | Keywords:
Work_issues: | Author:
Upstream: N/A | Reviewer:
Merged: |
------------------------+---------------------------------------------------
Comment(by jason):
Is a temporary directory created when server_pool is not used?
If yes, then right now there is a terrible inconsistency, in that we are
in that temporary directory when server_pool is used (because chdir errors
out), but we are not in that directory when server_pool is not used
(because chdir succeeds). What I'm saying is that this inconsistency
between server_pool=True and server_pool=False is really bad.
Note that the default for sh._curdir is '.'. Would it be best to just
change the current working directory to the temporary directory before
executing anything? I'm surprised that '.' refers to the worksheet
directory, rather than the temporary directory. If we can change the
current directory to the temporary directory before calling any scripts
(including shell scripts), then I think the problem would be solved, as sh
would just chdir to the temporary directory then.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7279#comment:6>
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.