chiark
/
gitweb
/
~ianmdlvl
/
cura.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
489f9e4
)
If basepath directory creation fails, then do continue, but we do have a problem...
author
daid
<daid303@gmail.com>
Thu, 20 Feb 2014 07:16:39 +0000
(08:16 +0100)
committer
daid
<daid303@gmail.com>
Thu, 20 Feb 2014 07:16:39 +0000
(08:16 +0100)
Cura/util/profile.py
patch
|
blob
|
history
diff --git
a/Cura/util/profile.py
b/Cura/util/profile.py
index 16dda8cd118d41338c7ff34ea54ea5feb8324491..671648218f9f170a65889580fd8adb02d9c41290 100644
(file)
--- 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():