Il giorno lun 18 ott 2021 alle ore 20:02 Andrea Francia < and...@andreafrancia.it> ha scritto:
> Now I have other problems: the tests what to use "python" instead of > "python3", I'll try to fix that upstream. > Upstream [1] you can find a new version (1412d3d8748585f422eb946a06bfe903160d3b01) of trash-cli that should use python3 on Debian. diff --git a/tests/run_command.py b/tests/run_command.py index 2e31e11..18fd7b6 100644 --- a/tests/run_command.py +++ b/tests/run_command.py @@ -1,5 +1,6 @@ import os import subprocess +import sys from trashcli import base_dir @@ -17,7 +18,7 @@ def run_command(cwd, command, args=None, input='', env=None): if args == None: args = [] command_full_path = os.path.join(base_dir, command) - process = subprocess.Popen(["python", command_full_path] + args, + process = subprocess.Popen([sys.executable, command_full_path] + args, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, The next problem that needs to be solved is about the new `psutil` dependency. [1] https://github.com/andreafrancia/trash-cli -- Andrea Francia http://andreafrancia.it