Option to create specified `cache_dir` if it does not exist
|Reported by:||TracContact@…||Owned by:||cboos|
I think it would be nice if the macro code tried to created the cache_dir specified in trac.ini if it does not exists. To this end, I hacked on graphviz.py from http://trac-hacks.org/svn/graphvizplugin/0.9/ to add this feature. It is enabled by adding
create_cache_dir_if_needed = true
to the trac.ini file.
Attached is my version of graphviz.py and the diff file. I realize that what I did is rough and I'm sure does not follow many standards, so I submit it as a starting point for those who know more about this. However, it does work!