chiark / gitweb /
Fixed SD card eject under Windows
authorsmorloc <smorloc@gmail.com>
Mon, 14 Jan 2013 21:28:29 +0000 (16:28 -0500)
committersmorloc <smorloc@gmail.com>
Mon, 14 Jan 2013 21:28:29 +0000 (16:28 -0500)
Path to EjectMedia.exe needed to be quotes since it typically contains
spaces

Cura/gui/sliceProgessPanel.py

index c67400b531303ea86acfe89ead9bd9b3fd834f56..e35d6ed59896e745be66082b592eb24aff3ca8d4 100644 (file)
@@ -86,7 +86,7 @@ class sliceProgessPanel(wx.Panel):
        
        def OnSafeRemove(self):
                if platform.system() == "Windows":
-                       cmd = "%s %s>NUL" % (os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'EjectMedia.exe')), profile.getPreference('sdpath'))
+                       cmd = '"%s" %s>NUL' % (os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'EjectMedia.exe')), profile.getPreference('sdpath'))
                elif platform.system() == "Darwin":
                        cmd = "diskutil eject '%s' > /dev/null 2>&1" % (profile.getPreference('sdpath'))
                else: