chiark / gitweb /
If basepath directory creation fails, then do continue, but we do have a problem...
authordaid <daid303@gmail.com>
Thu, 20 Feb 2014 07:16:39 +0000 (08:16 +0100)
committerdaid <daid303@gmail.com>
Thu, 20 Feb 2014 07:16:39 +0000 (08:16 +0100)
Cura/util/profile.py

index 16dda8cd118d41338c7ff34ea54ea5feb8324491..671648218f9f170a65889580fd8adb02d9c41290 100644 (file)
@@ -483,7 +483,10 @@ def getBasePath():
        else:
                basePath = os.path.expanduser('~/.cura/%s' % version.getVersion(False))
        if not os.path.isdir(basePath):
-               os.makedirs(basePath)
+               try:
+                       os.makedirs(basePath)
+               except:
+                       print "Failed to create directory: %s" % (basePath)
        return basePath
 
 def getAlternativeBasePaths():