diff options
Diffstat (limited to 'buildtools')
-rw-r--r-- | buildtools/wafsamba/samba_utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buildtools/wafsamba/samba_utils.py b/buildtools/wafsamba/samba_utils.py index 563009e093..b1ddc5a99e 100644 --- a/buildtools/wafsamba/samba_utils.py +++ b/buildtools/wafsamba/samba_utils.py @@ -308,7 +308,7 @@ def recursive_dirlist(dir, relbase, pattern=None): def mkdir_p(dir): '''like mkdir -p''' - if os.path.isdir(dir): + if not dir or os.path.isdir(dir): return mkdir_p(os.path.dirname(dir)) os.mkdir(dir) |