I'm able to translate one file. But I don't understand how to translate whole directory. From docs:
To translate an entire project from one directory tree to another use:
$ 2to3 --output-dir=python3-version/mycode -W -n python2-version/mycode
Can you give me a concrete example? I have python2 files in D:\Dir1
and want to get new files in D:\Dir2
. I'm now in the command prompt inside Dir1
typing c:\Users\........\Python36\Tools\scripts\2to3.py -w
So what is the command that should I use?