mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
parent
227bb3e91f
commit
304e7b1d9f
6 changed files with 208 additions and 3 deletions
|
|
@ -109,6 +109,7 @@ def make_app_client(
|
|||
inspect_data=None,
|
||||
static_mounts=None,
|
||||
template_dir=None,
|
||||
extra_plugins=None,
|
||||
):
|
||||
with tempfile.TemporaryDirectory() as tmpdir:
|
||||
filepath = os.path.join(tmpdir, filename)
|
||||
|
|
@ -133,6 +134,8 @@ def make_app_client(
|
|||
os.mkdir(plugins_dir)
|
||||
open(os.path.join(plugins_dir, "my_plugin.py"), "w").write(PLUGIN1)
|
||||
open(os.path.join(plugins_dir, "my_plugin_2.py"), "w").write(PLUGIN2)
|
||||
for filename, content in (extra_plugins or {}).items():
|
||||
open(os.path.join(plugins_dir, filename), "w").write(content)
|
||||
config = config or {}
|
||||
config.update(
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue