def resource(name):
for path, _, files in os.walk(staticdir()):<EOL><INDENT>if name in files:<EOL><INDENT>return os.path.abspath(os.path.join(path, name))<EOL><DEDENT><DEDENT>
Return the full path of a named resource in the static directory.

If multiple files with the same name exist, **name** should contain
the first directory as well.

.. code-block:: python

    resource("myfile")
    resource("test01/test.txt")
    resource("test02/test.txt")