From 9b6b4a9228ced9ec662ec213eb6fd3cc0ce97f35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Fri, 8 Jul 2016 15:45:13 +0200 Subject: [PATCH] Have path set for SD files and strip leading / --- src/octoprint/printer/standard.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/octoprint/printer/standard.py b/src/octoprint/printer/standard.py index fd182ed1..fe2092f2 100644 --- a/src/octoprint/printer/standard.py +++ b/src/octoprint/printer/standard.py @@ -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: