Fix bug discovered by Klaus-Juergen Wolf -- it runs into infinite recursion!

This commit is contained in:
Guido van Rossum 1999-06-09 19:07:22 +00:00
parent 3d548717f5
commit d9e5d17407
1 changed files with 1 additions and 1 deletions

View File

@ -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)