#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):
To elaborate on `os.path.exists(file)`:
1. it checks only whether something by that name exists, not that it's an
ordinary file. So at least use `os.path.isfile(file)` instead.
2. it doesn't check whether the file is executable. Removing executable
bits from a program is a valid way to temporarily "disable" it, so you
should also check `os.access(file, X_OK)`.
--
Ticket URL: <http://trac.sagemath.org/ticket/14414#comment:25>
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.