Return a path to a builtin template. Avoid calling this function at the module level or in a class-definition because __file__ may not exist, e.g. in frozen environments.
(name)
| 32 | |
| 33 | |
| 34 | def builtin_template_path(name): |
| 35 | """ |
| 36 | Return a path to a builtin template. |
| 37 | |
| 38 | Avoid calling this function at the module level or in a class-definition |
| 39 | because __file__ may not exist, e.g. in frozen environments. |
| 40 | """ |
| 41 | return Path(__file__).parent / "templates" / name |
| 42 | |
| 43 | |
| 44 | class ExceptionCycleWarning(UserWarning): |
no outgoing calls
no test coverage detected