From: daid Date: Thu, 20 Feb 2014 07:16:39 +0000 (+0100) Subject: If basepath directory creation fails, then do continue, but we do have a problem... X-Git-Tag: 14.02-RC3~3 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=3b85816f7b748fa13a4c9f4130bdf060f6395d3a;p=cura.git If basepath directory creation fails, then do continue, but we do have a problem then. --- diff --git a/Cura/util/profile.py b/Cura/util/profile.py index 16dda8cd..67164821 100644 --- a/Cura/util/profile.py +++ b/Cura/util/profile.py @@ -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():