Commits

Diego Búrigo Zacarão committed 1b7b950

Avoiding to try to create dirs when path is empty

Comments (0)

Files changed (1)

 
 def mkdir_p(path):
     try:
-        os.makedirs(path)
+        if path:
+            os.makedirs(path)
     except OSError, exc: # Python >2.5
         if exc.errno == errno.EEXIST:
             pass