Mercurial > libervia-backend
comparison libervia/backend/tools/common/template.py @ 4075:47401850dec6
refactoring: rename `libervia.frontends.jp` to `libervia.cli`
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 02 Jun 2023 14:54:26 +0200 |
parents | 4b842c1fb686 |
children | 84f6bee6440d |
comparison
equal
deleted
inserted
replaced
4074:26b7ed2817da | 4075:47401850dec6 |
---|---|
587 | 587 |
588 @param template(unicode): template to parse | 588 @param template(unicode): template to parse |
589 @return (tuple[unicode, unicode]): theme and absolute path to theme's root dir | 589 @return (tuple[unicode, unicode]): theme and absolute path to theme's root dir |
590 @raise NotFound: requested site has not been found | 590 @raise NotFound: requested site has not been found |
591 """ | 591 """ |
592 # FIXME: check use in jp, and include site | 592 # FIXME: check use in CLI frontend, and include site |
593 site, theme, __ = self.env.loader.parse_template(template) | 593 site, theme, __ = self.env.loader.parse_template(template) |
594 if site is None: | 594 if site is None: |
595 # absolute template | 595 # absolute template |
596 return "", os.path.dirname(template) | 596 return "", os.path.dirname(template) |
597 try: | 597 try: |