Is it possible to do something like using the trac module in Python in order to get a listing of all of the projects in a given directory? If possible it would be nice to get things like the description, too. I can’t seem to figure out how to do it.
Thanks for any help you can provide.
You can script something like this:
Then you can use either
iter_trac_projects_from_dirorget_trac_projects_from_dirwhichever you think is best for you.Alternatively you could use the function
get_enviromentsfrom moduletrac.web.mainbut only as alternative toos.listdir— you would still have to check whether or not each alleged env is really a trac environment. See why: