Skip to content

Commit

Permalink
remove usage of Path as context manager
Browse files Browse the repository at this point in the history
  • Loading branch information
etzellux committed Feb 6, 2024
1 parent 4d8b0a7 commit 0eb51f3
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 0eb51f3

Please sign in to comment.