trivial: remove unused get_template_from_script function (#52732)
This commit is contained in:
parent
cc1f7e13a0
commit
dbd5bf655f
|
@ -34,16 +34,6 @@ from quixote.util import StaticDirectory, StaticFile
|
||||||
from . import ezt, force_str
|
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):
|
def get_theme_directory(theme_id):
|
||||||
system_location = os.path.join(get_publisher().data_dir, 'themes', 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)
|
local_location = os.path.join(get_publisher().app_dir, 'themes', theme_id)
|
||||||
|
|
Loading…
Reference in New Issue