I\'m trying to write a simple Python script that will copy a index.tpl to index.html in all of the subdirectories (with a few exceptions).
I\'m getting bogged down
Check "Getting a list of all subdirectories in the current directory".
Here's a Python 3 version:
import os dir_list = next(os.walk('.'))[1] print(dir_list)