chiark / gitweb /
Fix #602
authordaid <daid303@gmail.com>
Wed, 18 Dec 2013 14:04:12 +0000 (15:04 +0100)
committerdaid <daid303@gmail.com>
Wed, 18 Dec 2013 14:04:12 +0000 (15:04 +0100)
Cura/gui/pluginPanel.py

index b29912ea2b7615355617439efbb3db068eaaaaba..b57ee5f3dc70195cc3c9aba6b21d0a5297611c27 100644 (file)
@@ -2,6 +2,7 @@ from __future__ import absolute_import
 __copyright__ = "Copyright (C) 2013 David Braam - Released under terms of the AGPLv3 License"
 
 import wx
+import os
 import webbrowser
 from wx.lib import scrolledpanel
 
@@ -174,4 +175,6 @@ class pluginPanel(wx.Panel):
                webbrowser.open('http://wiki.ultimaker.com/Category:CuraPlugin')
 
        def OnOpenPluginLocation(self, e):
+               if not os.path.exists(profile.getPluginBasePaths()[0]):
+                       os.mkdir(profile.getPluginBasePaths()[0])
                explorer.openExplorerPath(profile.getPluginBasePaths()[0])