Add data sink to the fork_context decorator
This commit is contained in:
parent
353645f8db
commit
200aefee00
1 changed files with 1 additions and 0 deletions
|
@ -67,6 +67,7 @@ def fork_context(f, context = default_context):
|
|||
with tempfile.TemporaryDirectory() as tmpdir:
|
||||
shutil.copytree(context.home_dir, f"{tmpdir}/gnupg", ignore=dirs_files_only)
|
||||
kwargs["context"] = gpg.Context(armor=context.armor, home_dir=f"{tmpdir}/gnupg")
|
||||
kwargs["data"] = gpg.Data()
|
||||
return f(*args, **kwargs)
|
||||
|
||||
return wrapped
|
||||
|
|
Loading…
Reference in a new issue