I am going away from tabs to spaces and would like to convert my current *.py files to this convention. It appears reindent.py is the recommended way of doing this.
After installing it on Ubuntu using sudo apt-get install python-examples
, it ended up in /usr/share/doc/pythonx.x/examples/Tools/scripts/reindent.py
.
Is there a preferred/recommended way of running such scripts without referencing the directory, and perhaps without adding that directory to my Path variable?
I hope to run this on single files and in batch, such as described HERE:
find . -type f -name "*.py" | xargs python reindent.py --nobackup