code: def get_fortpy_templates_dir():
      
      import fortpy
      from os import path
      fortdir = path.dirname(fortpy.__file__)
      return path.join(fortdir, "templates")
docs: Gets the templates directory from the fortpy package.