chiark / gitweb /
Fix tab/spaces mix.
authordaid <daid303@gmail.com>
Mon, 12 Jan 2015 06:55:10 +0000 (07:55 +0100)
committerdaid <daid303@gmail.com>
Mon, 12 Jan 2015 06:55:10 +0000 (07:55 +0100)
Cura/gui/sceneView.py

index 47c7831de17603d90beb64231d99218dd5e9608e..29193f8a6662db11b947fb288129402174029ef0 100644 (file)
@@ -258,14 +258,14 @@ class SceneView(openglGui.glGuiPanel):
                                #check if the file is part of the root folder. If so, create folders on sd card to get the same folder hierarchy.
                                repDir = profile.getPreference("sdcard_rootfolder")
                                if os.path.exists(repDir) and os.path.isdir(repDir):
-                                       repDir = os.path.abspath(repDir)
-                                       originFilename = os.path.abspath( self._scene._objectList[0].getOriginFilename() )
-                                       if os.path.dirname(originFilename).startswith(repDir):
-                                               filename = os.path.splitext(originFilename[len(repDir):])[0] + profile.getGCodeExtension()
-                                               sdPath = os.path.dirname(os.path.join( drive[1], filename))
-                                               if not os.path.exists(sdPath):
-                                                       print "Creating replication directory:", sdPath
-                                                       os.makedirs(sdPath)
+                                       repDir = os.path.abspath(repDir)
+                                       originFilename = os.path.abspath( self._scene._objectList[0].getOriginFilename() )
+                                       if os.path.dirname(originFilename).startswith(repDir):
+                                               filename = os.path.splitext(originFilename[len(repDir):])[0] + profile.getGCodeExtension()
+                                               sdPath = os.path.dirname(os.path.join( drive[1], filename))
+                                               if not os.path.exists(sdPath):
+                                                       print "Creating replication directory:", sdPath
+                                                       os.makedirs(sdPath)
 
                                threading.Thread(target=self._saveGCode,args=(drive[1] + filename, drive[1])).start()
                        elif connectionGroup is not None: