Hi all,

One of my directives needs to query the application configuration
variables.  What is the cleanest way to expose the app to a Directive?

At the moment, I simply do

def setup(app):
    app.add_directive('person', Person)

    global running_app
    running_app = app


and then use the global variable inside my "Person" directive, but
that feels grimy.

Thanks!
Stéfan

--~--~---------~--~----~------------~-------~--~----~
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