From a0357b15ce7ab08e2b0ed9bf25f6f4b0e6b22b50 Mon Sep 17 00:00:00 2001 From: smorloc Date: Mon, 14 Jan 2013 16:28:29 -0500 Subject: [PATCH] Fixed SD card eject under Windows Path to EjectMedia.exe needed to be quotes since it typically contains spaces --- Cura/gui/sliceProgessPanel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.30.2