libb.local_or_static_join

local_or_static_join(static, somepath)[source]

Find template in working directory or static folder.

Parameters:
  • static (str) – Static folder path.

  • somepath (str) – Relative path to template.

Returns:

Full path to existing template.

Return type:

Path

Raises:

OSError – If template not found in either location.