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):