From: smorloc Date: Mon, 14 Jan 2013 21:28:29 +0000 (-0500) Subject: Fixed SD card eject under Windows X-Git-Tag: 13.03~101^2~2 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=a0357b15ce7ab08e2b0ed9bf25f6f4b0e6b22b50;p=cura.git Fixed SD card eject under Windows Path to EjectMedia.exe needed to be quotes since it typically contains spaces --- diff --git a/Cura/gui/sliceProgessPanel.py b/Cura/gui/sliceProgessPanel.py index c67400b5..e35d6ed5 100644 --- a/Cura/gui/sliceProgessPanel.py +++ b/Cura/gui/sliceProgessPanel.py @@ -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: