From f6bcf610ba2e1133a1c9a5dbdec923830ea60e37 Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Sat, 7 Jan 2023 00:07:03 +0100 Subject: [PATCH] Correzione md5. --- loaih/build.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/loaih/build.py b/loaih/build.py index f00f999..5649427 100644 --- a/loaih/build.py +++ b/loaih/build.py @@ -387,8 +387,10 @@ class Build(loaih.RemoteBuild): def __create_checksum__(self, file): """Internal function to create checksum file.""" - checksum = subprocess.run(f"md5sum {file}", shell=True, - capture_output=True, text=True, encoding='utf-8', check=True) + checksum = subprocess.run( + f"md5sum {file}", shell=True, cwd=self.appnamedir, + capture_output=True, text=True, encoding='utf-8', check=True + ) if checksum.stdout: with open(f"{file}.md5", 'w', encoding='utf-8') as csfile: csfile.write(checksum.stdout)