Fix bug discovered by Klaus-Juergen Wolf -- it runs into infinite recursion!
This commit is contained in:
parent
3d548717f5
commit
d9e5d17407
|
@ -12,7 +12,7 @@ def main():
|
|||
makedirs(p)
|
||||
|
||||
def makedirs(p):
|
||||
if not os.path.isdir(p):
|
||||
if p and not os.path.isdir(p):
|
||||
head, tail = os.path.split(p)
|
||||
makedirs(head)
|
||||
os.mkdir(p, 0777)
|
||||
|
|
Loading…
Reference in New Issue