Skip to content

Commit

Permalink
Accept folder names as arguments to do2to3.py
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjc committed Apr 9, 2013
1 parent 985b3c7 commit 7593e63
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion do2to3.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,7 @@ def main(python2_source, python3_source,
if __name__ == "__main__":
python2_source = "."
python3_source = "build/py%i.%i" % sys.version_info[:2]
main(python2_source, python3_source)
children = ["Bio", "BioSQL", "Tests", "Scripts", "Doc"]
if len(sys.argv) > 1:
children = [x for x in sys.argv[1:] if x in children]
main(python2_source, python3_source, children)

0 comments on commit 7593e63

Please sign in to comment.