Am 13.02.2013 20:28, schrieb Mengu:
cur_dir = os.path.dirname(__file__) # will give you the absolute path
to your controllers directory

You can also use pkg_resources to access such resource files:
http://pythonhosted.org/distribute/pkg_resources.html

If the file shall not be accessible directly, you should not put it into the static folder, but in another folder that is not exposed.

-- Christoph

--
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/turbogears?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to