Skip to content

Commit

Permalink
Create build dir if not already there (e.g. fresh download)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjc committed Apr 9, 2013
1 parent 3c9de15 commit 985b3c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions do2to3.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ def main(python2_source, python3_source,
#may differ slightly.
print("The 2to3 library will be called automatically now,")
print("and the converted files cached under %s" % python3_source)
if not os.path.isdir("build"):
os.mkdir("build")
if not os.path.isdir(python3_source):
os.mkdir(python3_source)
for child in children:
Expand Down

0 comments on commit 985b3c7

Please sign in to comment.