Hi Victor. Although I don't know the answer to your question, I'm sure that it actually a python question (rather than a sage one) so I expect that the answer lies somewhere in the wealth of online python documentation!
Of course someone else might give a more helpful answer... John Cremona On Jul 23, 5:16 pm, VictorMiller <victorsmil...@gmail.com> wrote: > I have a sage program in a file in one of my directories called > calc.sage. It uses a class that I wrote called Table, which I've put > in a file called Table.py in the same directory. In the sage notebook > I load calc.sage (by explicitly giving the path to the directory), and > calc.sage has a line > > from Table import Table > > However, when I try to run it it can't find Table.py. So, the > question is, what is the path that sage uses for import, and how do I > change it? Is there a way to do this without having to include > explicit path qualification in the files? > > Victor --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---