diff --git a/algojig/gojig.py b/algojig/gojig.py index 74ecf3c..ff6ab86 100644 --- a/algojig/gojig.py +++ b/algojig/gojig.py @@ -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