Hello, Looking at the code for load in enlightening. Here's the bit that is relevant for you:
## Load file by absolute filename X = loads(open(filename).read(), compress=compress) try: X._default_filename = os.path.abspath(filename) except AttributeError: pass Since loads just takes in a string, it has no way to know about the filename. However, the _default_filename is set as an attribute after it has already been loaded. --Mike --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---