Skip to content
Permalink
Browse files
Merge pull request #43006 from dmarteau/fix-python-processing-mkdir
Fix 'mkdir' in python processing tools
  • Loading branch information
m-kuhn committed Apr 28, 2021
2 parents df9921e + 467dd26 commit 2a48e2bdb384e325c8a056697f9cf536b3ef4eb7
Showing with 1 addition and 9 deletions.
  1. +1 −9 python/plugins/processing/tools/system.py
@@ -94,15 +94,7 @@ def getNumExportedLayers():


def mkdir(newdir):
newdir = newdir.strip('\n\r ')
if os.path.isdir(newdir):
pass
else:
(head, tail) = os.path.split(newdir)
if head and not os.path.isdir(head):
mkdir(head)
if tail:
os.mkdir(newdir)
os.makedirs(newdir.strip('\n\r '), exist_ok=True)


def tempHelpFolder():

0 comments on commit 2a48e2b

Please sign in to comment.