Have path set for SD files and strip leading /

This commit is contained in:
Gina Häußge 2016-07-08 15:45:13 +02:00
parent 42e54f0fbc
commit 9b6b4a9228

View file

@ -1003,8 +1003,9 @@ class Printer(PrinterInterface, comm.MachineComPrintCallback):
if location == FileDestinations.SDCARD:
full_path = print_job_file
name = full_path
path = ""
if full_path.startswith("/"):
full_path = full_path[1:]
name = path = full_path
origin = FileDestinations.SDCARD
else: