fix lp on nix
This commit is contained in:
parent
b0c19d5642
commit
2d61260583
2 changed files with 7 additions and 2 deletions
|
|
@ -68,7 +68,12 @@ def upload_and_print():
|
|||
app.logger.info(
|
||||
f"Sending '{filename}' ({page_count} pages) to printer '{PRINTER_NAME}'"
|
||||
)
|
||||
command = ["lp", "-d", PRINTER_NAME, filepath]
|
||||
command = [
|
||||
"lp",
|
||||
"-d",
|
||||
PRINTER_NAME,
|
||||
filepath,
|
||||
]
|
||||
result = subprocess.run(
|
||||
command, capture_output=True, text=True, check=True
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue