From 103714e9c62e0d7d58f45d1faecef6301a0736fe Mon Sep 17 00:00:00 2001 From: gryf Date: Fri, 20 Oct 2023 18:36:47 +0200 Subject: [PATCH] Fix the strings/bytes mess with shutil --- ulzx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ulzx b/ulzx index 594d9cf..b90f0f3 100755 --- a/ulzx +++ b/ulzx @@ -121,7 +121,9 @@ class ULzx(Archive): os.path.join(current_dir, self._arch)], stdout=fnull, stderr=fnull) if result == 0: - shutil.copy2(src, dst) + # use subprocess, as shutil.copy2 will complain about mixing + # strings with bytes + subprocess.run(['cp', src, dst]) except CalledProcessError: return 1 finally: