From d9e5d17407f21e25b5540efe77c891537763816e Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 9 Jun 1999 19:07:22 +0000 Subject: Fix bug discovered by Klaus-Juergen Wolf -- it runs into infinite recursion! --- Demo/scripts/makedir.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Demo/scripts/makedir.py b/Demo/scripts/makedir.py index 58efe0e..4c00d88 100755 --- a/Demo/scripts/makedir.py +++ b/Demo/scripts/makedir.py @@ -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) -- cgit v0.12