trivial: remove unused get_template_from_script function

This commit is contained in:
Frédéric Péters 2021-04-03 09:56:43 +02:00
parent 7dd6609672
commit bb4a7f822a
1 changed files with 0 additions and 10 deletions

View File

@ -34,16 +34,6 @@ from quixote.util import StaticDirectory, StaticFile
from . import ezt, force_str
def get_template_from_script(filename):
local_result = {}
exec(
open(filename).read(),
{'publisher': get_publisher(), 'request': get_request(), '__file__': filename},
local_result,
)
return local_result.get('template_content')
def get_theme_directory(theme_id):
system_location = os.path.join(get_publisher().data_dir, 'themes', theme_id)
local_location = os.path.join(get_publisher().app_dir, 'themes', theme_id)