#14414: runsnake command broken
-------------------------------------+-------------------------------------
Reporter: nbruin | Owner: tbd
Type: defect | Status: needs_work
Priority: major | Milestone: sage-6.4
Component: performance | Resolution:
Keywords: | Merged in:
Authors: Frédéric Chapoton | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
public/ticket/14414 | f2654aea5ade94a5f43d87dc3b83906c57054545
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by jdemeyer):
I like your proposal from the last comment, but some comments:
You never need `os.system("sh -c ...")` since `os.system()` already uses a
Shell.
And like I said before, use `sage-native-execute` instead of manually
messing with environment variables.
Instead of `os.path.exists()`, you could instead use the more Pythonic
{{{
try:
subprocess.call(os.path.join(SAGE_LOCAL, "bin", "runsnake"...)
except OSError:
...
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/14414#comment:24>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.