-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Noah Kantrowitz skrev 23-06-2008 16:54: | On Jun 23, 2008, at 5:28 AM, Jani Tiainen wrote: |> So I need to do it by hand to all about 60 of my trac configs.. :D |> |> I wouldn't say it more "flexible" while upgrading, when creating new |> instances it might be more flexible. | | for f in `ls /var/trac` | do | echo -e '\n[inherit]\nfile = /usr/share/trac/conf/trac.ini\n' >>"/ | var/trac/$f" | done
Indeed. And I imagine most people running 60 parallel instances of trac would have a posix shell available. However, does anyone know of a "reasonable" package that would allow a similarly short example in python, that remained somewhat portable ? I'm not looking for something like ipython, the defunct pysh or pythonShell -- just some helpful filesystem iterators that aren't quite as verbose as os.path.* Maybe a utility package that would the above be done in some reasonably intuitive 5-6 lines of python. Any ideas? (I can already hear someone snickering "perl" ;-) - -- ~ .---. Eirik Schwenke <[EMAIL PROTECTED]> ( NSD ) Harald HÃ¥rfagresgate 29 Rom 150 ~ '---' N-5007 Bergen tlf: (555) 889 13 ~ GPG-key at pgp.mit.edu Id 0x8AA3392C -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIX/xNxUW7FIqjOSwRAl3SAKCfVJzSK9odaeMXeNzuSdThGXaz7gCgttIn z1Q9Dp4uZFh1HWfufw6sbNE= =Edwh -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~----------~----~----~----~------~----~------~--~---