Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove importlib.resource.path usage #15

Merged
merged 1 commit into from
Nov 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
remove importlib.resource.path from gojig.py:17
  • Loading branch information
etzellux committed Nov 30, 2023
commit a636ece321f72c95aec2c19f7b88f4be4da4a59f
2 changes: 1 addition & 1 deletion algojig/gojig.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@


def run(command, *args, input=None):
with importlib.resources.path(algojig, binary) as p:
with importlib.resources.files(algojig).joinpath(binary) as p:
output = subprocess.run([p, command, *args], capture_output=True, input=input)
return output

Expand Down
Loading