from wx.lib import scrolledpanel
from Cura.util import profile
-from Cura.util import exporer
+from Cura.util import explorer
class pluginPanel(wx.Panel):
def __init__(self, parent):
webbrowser.open('http://wiki.ultimaker.com/Category:CuraPlugin')
def OnOpenPluginLocation(self, e):
- exporer.openExporerPath(profile.getPluginBasePaths()[0])
+ explorer.openExplorerPath(profile.getPluginBasePaths()[0])
from Cura.util import mesh
from Cura.util import sliceRun
from Cura.util import gcodeInterpreter
-from Cura.util import exporer
+from Cura.util import explorer
class Action(object):
pass
self.sizer.Add(self.closeButton, (3,0), span=(1,1))
self.sizer.Add(self.printButton, (3,1), span=(1,1))
self.sizer.Add(self.logButton, (3,2), span=(1,1))
- if exporer.hasExporer():
+ if explorer.hasExplorer():
self.openFileLocationButton = wx.Button(self, -1, "Open file location")
self.Bind(wx.EVT_BUTTON, self.OnOpenFileLocation, self.openFileLocationButton)
self.sizer.Add(self.openFileLocationButton, (3,3), span=(1,1))
shutil.copy(self.resultFilename, os.path.join(profile.getPreference('sdpath'), filename))
def OnOpenFileLocation(self, e):
- exporer.openExporer(self.resultFilename)
+ explorer.openExplorer(self.resultFilename)
def OnPrint(self, e):
printWindow.printFile(self.resultFilename)
from Cura.gui.util import taskbar
from Cura.util import profile
from Cura.util import sliceRun
-from Cura.util import exporer
+from Cura.util import explorer
from Cura.util import gcodeInterpreter
class sliceProgressPanel(wx.Panel):
LogWindow('\n'.join(self.progressLog))
def OnOpenFileLocation(self, e):
- exporer.openExporer(sliceRun.getExportFilename(self.filelist[0]))
+ explorer.openExplorer(sliceRun.getExportFilename(self.filelist[0]))
def OnCopyToSD(self, e):
if profile.getPreference('sdpath') == '':
if cost is not None:
status += " Cost: %s" % (cost)
self.statusText.SetLabel(status)
- if exporer.hasExporer():
+ if explorer.hasExplorer():
self.openFileLocationButton = wx.Button(self, -1, "Open file location")
self.Bind(wx.EVT_BUTTON, self.OnOpenFileLocation, self.openFileLocationButton)
self.sizer.Add(self.openFileLocationButton, 0)
import os
import subprocess
-def hasExporer():
+def hasExplorer():
if sys.platform == 'win32' or sys.platform == 'cygwin' or sys.platform == 'darwin':
return True
if sys.platform == 'linux2':
return True
return False
-def openExporer(filename):
+def openExplorer(filename):
if sys.platform == 'win32' or sys.platform == 'cygwin':
subprocess.Popen(r'explorer /select,"%s"' % (filename))
if sys.platform == 'darwin':
elif os.path.isfile('/usr/bin/dolphin'):
subprocess.Popen(['/usr/bin/dolphin', os.path.split(filename)[0]])
-def openExporerPath(filename):
+def openExplorerPath(filename):
if sys.platform == 'win32' or sys.platform == 'cygwin':
subprocess.Popen(r'explorer "%s"' % (filename))
if sys.platform == 'darwin':