Skip to content

Commit

Permalink
Fix 'mkdir' in python processing tools
Browse files Browse the repository at this point in the history
  • Loading branch information
dmarteau committed Apr 28, 2021
1 parent df9921e commit 467dd26
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions python/plugins/processing/tools/system.py
Expand Up @@ -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():
Expand Down

0 comments on commit 467dd26

Please sign in to comment.