diff --git a/algojig/gojig.py b/algojig/gojig.py index 74ecf3c..ebabae4 100644 --- a/algojig/gojig.py +++ b/algojig/gojig.py @@ -12,9 +12,8 @@ machine = platform.machine() binary = f'algojig_{machine}' - 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