|
From: Aahz <aa...@py...> - 2002-10-18 01:30:03
|
On Thu, Oct 17, 2002, Aahz wrote: > > Given the full path /users/aahz/book/chapter/source.txt, in the context > of processing a directive in source.txt, how do I retrieve the value > /users/aahz/book/chapter/ ? > > I'd have thought state_machine.document.source would have the path (or > at least a FileInput object from which it could be retrieved), but it > doesn't. I finally found it in state_machine.document.current_source. I consider this far from obvious. -- Aahz (aa...@py...) <*> http://www.pythoncraft.com/ Project Vote Smart: http://www.vote-smart.org/ |