#508: [with patch; needs work] problem with "sage -c"
----------------------------+-----------------------------------------------
Reporter: was | Owner: was
Type: defect | Status: new
Priority: major | Milestone: sage-3.2.1
Component: user interface | Resolution:
Keywords: |
----------------------------+-----------------------------------------------
Changes (by was):
* summary: [with patch; needs review] problem with "sage -c" => [with
patch; needs work] problem with "sage -c"
Comment:
This doesn't work because when sage-eval gets run the working directory is
local/bin/, so the file test.sage isn't found. I bet you tested this
patch with test.sage in SAGE_ROOT/local/bin/, which is the only case when
this will work:
{{{
teragon-2:sage-3.2 wstein$ more test.sage
print "Hi"
teragon-2:sage-3.2 wstein$ ./sage -c "load test.sage"
/Users/wstein/sage/build/sage-3.2/local/bin/sage-preparse: File test.sage
is missing
python: can't open file 'test.py': [Errno 2] No such file or directory
teragon-2:sage-3.2 wstein$ cp test.sage local/bin/
teragon-2:sage-3.2 wstein$ ./sage -c "load test.sage"
Hi
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/508#comment:5>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---