trivial: remove unused get_template_from_script function (#52732)

This commit is contained in:
Frédéric Péters 2021-04-03 09:56:43 +02:00
parent cc1f7e13a0
commit dbd5bf655f
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)