All,

I'm writing a directive to automatically produce some plots from some scripts. 

How can I intercept the name of the .rst file where this directive is 
present ? 

For example, let's say I have a file source/examples/plotting/basics.rst where 
my directive ".. plot:: name_of_the_script" is present somewhere. I need to 
find that the file is in "source/examples/plotting/", so that I can know how 
far back I need to go to access the files (that are copied in build).

Any idea or pointer to the famous manual are welcome.
Thx a lot in advance!
P.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to