def declaration_path(name):
from os.path import dirname, join, exists<EOL>import  metatabdecl<EOL>from metatab.exc import IncludeError<EOL>d = dirname(metatabdecl.__file__)<EOL>path = join(d, name)<EOL>if not exists(path):<EOL><INDENT>path = join(d, name + '<STR_LIT>')<EOL><DEDENT>if not exists(path):<EOL><INDENT>raise IncludeError("<STR_LIT>".format(name))<EOL><DEDENT>return path<EOL>
Return the path to an included declaration