My program is written in python and I use pythontidy and reindent to clean it. However I'd like a more efficient method than renaming the file, should I just look at the doc to know how to now get forced to rename files and make pythontidy behave more like reindent i.e. enable it to run on all files in a directory just by running it:
$ python ./PythonTidy-1.20.py mai
mailman.py main.old.py main.py main.py.bak main.pyc
ubuntu@ubuntu:/media/Lexar/montao/montaoproject$ python ./PythonTidy-1.20.py main.py main.tidy.py
ubuntu@ubuntu:/media/Lexar/montao/montaoproject$ python ./PythonTidy-1.20.py i18n.py i18n.tidy.py
ubuntu@ubuntu:/media/Lexar/montao/montaoproject$ mv i18n.tidy.py i18n.py
ubuntu@ubuntu:/media/Lexar/montao/montaoproject$ mv main.tidy.py main.py
ubuntu@ubuntu:/media/Lexar/montao/montaoproject$ python ./reindent .
python: can't open file './reindent': [Errno 2] No such file or directory
ubuntu@ubuntu:/media/Lexar/montao/montaoproject$ python ./reindent.py .
reindented ./appengine_config.py
reindented ./i18n.py
reindented ./main.py
reindented ./util.py
reindented ./facebookapi.py
reindented ./br.py
reindented ./PythonTidy-1.20.py
reindented ./in.old.py
reindented ./login_required.py
ubuntu@ubuntu:/media/Lexar/montao/montaoproject$
