Permalink
Browse files

zcov-genhtml: Only try to create output dir if it doesn't already exists

  • Loading branch information...
1 parent c64d6ae commit c14bcb12802b426a107ccaa215567cf2b3db41f6 @krajaratnam krajaratnam committed with Jan 10, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/zcov-genhtml
View
@@ -637,7 +637,8 @@ def main():
return (path,lineData)
covMap = dict(map(remap, allCovData.items()))
- os.mkdir(output)
+ if not os.path.isdir(output):
+ os.mkdir(output)
outputItems = []

0 comments on commit c14bcb1

Please sign in to comment.