Skip to content

Commit

Permalink
Merge pull request #16 from Hipo/dont-use-path-as-cm
Browse files Browse the repository at this point in the history
Remove usage of Path as context manager
  • Loading branch information
fergalwalsh authored Feb 6, 2024
2 parents 4d8b0a7 + 0eb51f3 commit d1a3173
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions algojig/gojig.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit d1a3173

Please sign in to comment.