From 3b85816f7b748fa13a4c9f4130bdf060f6395d3a Mon Sep 17 00:00:00 2001 From: daid Date: Thu, 20 Feb 2014 08:16:39 +0100 Subject: [PATCH] If basepath directory creation fails, then do continue, but we do have a problem then. --- Cura/util/profile.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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(): -- 2.30.2