On Tue, Feb 9, 2010 at 10:17 AM, kcrisman <kcris...@gmail.com> 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 raises an error. I would use > Cell.directory() or Cell.id() but don't know how to get a reference to > the cell I am in that way either.
What *precisely* do you really want to do. The above question is too general. In general you can't do the above, due to security restrictions. William > > Thanks! > > - kcrisman > > -- > 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 > URL: http://www.sagemath.org > -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org -- 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 URL: http://www.sagemath.org