I'm puzzled by the logic behind loading files:
I have a file called 'con.sage' (which contains a simple assignment of
a sequence to a variable) saved in the directory from which I run
sage. In the notebook, I type
load 'con.sage'
and it loads no problem. I want, however, for the file to load in the
course of executing a function, so I put something like
def blah():
...
load 'con.sage'
It reports a syntax error -- it seems to want the file name
parenthesized:'
def blahj():
load('con.sage')
That's accepted, but when I try to run blah(), I get
Exception (click to the left for traceback):
...
IOError: [Errno 2] No such file or directory: '/home/mak/mixed/
sage_notebook/objects/con.sage.sobj'
which baffles me on two counts: why does it look for the file in a
different directory (sage is running from home/mak/mixed), and why
does it want to tack on a .sobj? Should I save my (pari-generated)
file with a .sobj extension.
Thanks,
Mak
--~--~---------~--~----~------------~-------~--~----~
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-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---