Skip to content

Commit d1a3173

Browse files
authored
Merge pull request #16 from Hipo/dont-use-path-as-cm
Remove usage of Path as context manager
2 parents 4d8b0a7 + 0eb51f3 commit d1a3173

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

algojig/gojig.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414

1515

1616
def run(command, *args, input=None):
17-
with importlib.resources.files(algojig).joinpath(binary) as p:
18-
output = subprocess.run([p, command, *args], capture_output=True, input=input)
19-
return output
17+
p = importlib.resources.files(algojig).joinpath(binary)
18+
output = subprocess.run([p, command, *args], capture_output=True, input=input)
19+
return output
2020

2121

2222
def init_ledger(block_timestamp):

0 commit comments

Comments
 (0)