From 0eb51f3f2aed9f38409141395d0887aaf6015820 Mon Sep 17 00:00:00 2001 From: etzellux Date: Tue, 6 Feb 2024 11:55:38 +0300 Subject: [PATCH] remove usage of Path as context manager --- algojig/gojig.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/algojig/gojig.py b/algojig/gojig.py index ff6ab86..2feb868 100644 --- a/algojig/gojig.py +++ b/algojig/gojig.py @@ -14,9 +14,9 @@ def run(command, *args, input=None): - with importlib.resources.files(algojig).joinpath(binary) as p: - output = subprocess.run([p, command, *args], capture_output=True, input=input) - return output + p = importlib.resources.files(algojig).joinpath(binary) + output = subprocess.run([p, command, *args], capture_output=True, input=input) + return output def init_ledger(block_timestamp):