Permalink
Browse files

Accept folder names as arguments to do2to3.py

  • Loading branch information...
1 parent 985b3c7 commit 7593e630613d120379331940cbdc25effa9c4955 @peterjc peterjc committed Apr 9, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 do2to3.py
View
@@ -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.