Browse Source

Only basename is used for the name

CURA-1680
Jaime van Kessel 8 years ago
parent
commit
806197f56b
1 changed files with 3 additions and 0 deletions
  1. 3 0
      cura/PrintInformation.py

+ 3 - 0
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]