Commit d9e5d174 authored by Guido van Rossum's avatar Guido van Rossum

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

parent 3d548717
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment