Re: [sage-support] Get notebook cell path from inside the cell

2010-02-09 Thread William Stein
On Tue, Feb 9, 2010 at 10:17 AM, kcrisman wrote: > Dear support, > > Suppose I want to refer to a file in a notebook cell directory from > inside that cell.  How do I access that path 'easily'? > os.path.abspath('.') seems to not do what I expect, but just referring > directly to the file also rai

[sage-support] Get notebook cell path from inside the cell

2010-02-09 Thread kcrisman
Dear support, Suppose I want to refer to a file in a notebook cell directory from inside that cell. How do I access that path 'easily'? os.path.abspath('.') seems to not do what I expect, but just referring directly to the file also raises an error. I would use Cell.directory() or Cell.id() but