On Wednesday 01 April 2009 07:44:17 am John Cremona wrote: > I had already tried that variation. No luck! > > mas...@host-56-150%echo $SAGE_PATH > /home/masgaj/sage > mas...@host-56-150%pwd > /home/masgaj/sage > mas...@host-56-150%sage -t /home/masgaj/sage/egros.py > sage -t "/home/masgaj/sage/egros.py" > File "./egros.py", line 18 > from /home/masgaj/sage/egros import * > ^ > SyntaxError: invalid syntax
What about?: mas...@host-56-150%cd /home/masgaj/sage mas...@host-56-150%sage -t egros.py You can't specify paths in python imports even though it feels like a logical thing to do. Perhaps 'sage -t' should handle a full path name by doing a 'cd' and trimming the path off the file name. -- Joel --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---