From 806197f56bbde3dc9587ceaad4d489d680324e3a Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Fri, 15 Jul 2016 12:10:09 +0200 Subject: [PATCH] Only basename is used for the name CURA-1680 --- cura/PrintInformation.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cura/PrintInformation.py b/cura/PrintInformation.py index 5432da5dcc..52c53a34a7 100644 --- a/cura/PrintInformation.py +++ b/cura/PrintInformation.py @@ -81,6 +81,9 @@ class PrintInformation(QObject): @pyqtSlot(str) def setJobName(self, name): + # Ensure that we don't use entire path but only filename + name = os.path.basename(name) + # when a file is opened using the terminal; the filename comes from _onFileLoaded and still contains its # extension. This cuts the extension off if necessary. name = os.path.splitext(name)[0]