Commit b7a6f601075e4680bcf2c4363bc0e8c16611b9a3
Commits[COMMIT BEGIN]commit b7a6f601075e4680bcf2c4363bc0e8c16611b9a3 Author: 0x4248 <[email protected]> Date: Tue Feb 3 09:32:27 2026 +0000 escpos: fix command hang diff --git a/toolkits/ESCPOS/src/server.py b/toolkits/ESCPOS/src/server.py index e464c5b..729850f 100644 --- a/toolkits/ESCPOS/src/server.py +++ b/toolkits/ESCPOS/src/server.py @@ -75,14 +75,8 @@ def print_escpos(print_id): cmdline = generate_escpos_cmdline(print_id) logging.debug(f"Executing command: {cmdline}") - with open(job_file_path, "rb") as infile, open(PRINTER, "wb") as outfile: - process = Popen( - ["./build/escpos"], - stdin=infile, - stdout=outfile, - stderr=PIPE, - ) - _, stderr = process.communicate() + process = Popen(cmdline, shell=True, stderr=PIPE) + process.communicate() if process.returncode != 0:[COMMIT END](C) 2025 0x4248 (C) 2025 4248 Media and 4248 Systems, All part of 0x4248 See LICENCE files for more information. Not all files are by 0x4248 always check Licencing.